2022-01-05 01:13:34,421 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,442 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,445 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,447 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,448 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,450 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,452 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,459 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,460 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,463 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,464 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,466 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,468 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,474 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,475 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,478 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,480 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,482 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,489 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,491 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,493 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,494 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,497 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,504 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,506 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,508 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,509 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,511 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,513 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,518 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,520 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,522 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,522 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,523 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,533 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,535 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,536 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,537 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,538 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,540 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,548 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,550 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,551 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,552 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,553 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,554 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,564 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,565 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,567 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,567 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,569 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,571 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,578 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,580 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,581 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,582 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,583 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,593 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,595 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,597 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,597 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,598 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,600 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,610 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,612 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,613 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,615 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,616 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,623 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,625 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,627 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,627 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,629 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,630 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,639 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,642 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,642 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,643 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,645 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,653 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,655 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,657 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,657 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,659 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,660 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,669 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,671 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,673 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,673 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,675 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,676 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,684 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,686 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,688 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,690 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,692 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,700 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,702 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,704 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,707 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,709 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,714 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,716 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,717 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,717 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,719 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,720 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,729 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,731 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,732 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,733 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,734 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,735 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,744 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,746 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,747 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,748 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,749 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,750 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,759 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,761 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,762 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,763 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,764 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,765 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,774 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,776 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,777 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,778 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,779 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,780 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,790 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,792 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,793 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,794 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,795 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,796 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,804 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,806 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,807 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,808 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,809 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,810 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,820 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,821 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,822 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,823 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,824 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,826 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,835 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,837 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,839 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,840 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,841 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,843 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,849 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,851 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,853 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,854 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,856 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,857 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,864 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,866 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,868 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,868 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,870 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,872 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,879 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,881 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,883 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,883 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,884 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,886 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,894 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,896 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,898 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,899 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,900 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,902 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,910 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,912 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,914 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,915 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,917 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,918 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,924 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,926 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,928 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,928 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,930 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,932 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,939 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,941 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,942 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,942 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,943 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,945 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,954 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,956 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,957 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,957 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,959 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,960 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,970 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,971 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,972 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,973 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,974 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,975 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,985 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,988 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,992 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,999 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,001 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,003 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,003 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,004 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,006 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,014 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,016 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,017 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,018 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,019 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,020 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,029 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,031 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,032 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,033 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,034 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,036 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,045 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,046 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,049 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,050 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,051 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,053 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,059 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,061 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,063 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,063 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,064 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,066 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,074 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,076 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,078 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,078 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,080 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,082 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,089 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,091 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,092 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,093 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,094 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,096 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,104 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,106 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,107 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,108 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,109 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,111 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,120 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,121 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,123 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,124 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,125 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,127 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,134 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,136 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,137 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,138 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,140 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,141 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,149 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,151 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,152 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,153 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,154 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,156 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,164 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,166 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,167 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,168 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,169 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,170 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,179 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,181 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,182 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,183 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,184 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,186 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,194 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,196 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,198 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,199 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,200 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,203 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,209 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,211 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,212 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,213 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,214 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,215 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,224 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,226 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,227 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,228 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,229 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,231 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,239 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,241 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,242 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,243 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,244 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,246 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,253 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,255 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,257 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,257 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,259 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,261 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,268 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,271 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,272 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,272 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,275 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,276 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,284 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,286 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,288 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,289 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,290 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,292 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,299 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,301 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,303 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,303 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,305 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,307 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,315 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,316 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,318 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,318 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,321 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,330 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,331 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,333 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,335 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,337 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,345 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,346 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,348 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,348 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,350 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,351 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,359 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,361 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,362 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,363 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,363 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,365 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,374 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,376 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,377 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,378 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,379 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,380 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,389 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,391 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,392 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,392 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,393 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,395 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,406 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,407 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,408 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,410 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,420 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,422 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,423 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,423 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,424 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,426 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,435 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,437 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,438 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,439 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,440 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,442 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,452 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,453 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,454 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,455 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,456 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,465 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,467 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,469 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,470 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,472 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,474 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,480 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,482 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,483 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,484 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,485 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,487 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,497 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,498 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,500 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,501 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,502 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,504 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,511 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,513 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,515 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,515 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,517 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,518 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,526 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,528 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,530 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,531 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,532 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,534 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,542 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,543 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,546 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,547 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,548 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,550 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,556 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,557 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,559 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,559 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,561 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,562 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,571 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,573 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,574 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,574 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,575 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,577 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,586 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,588 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,589 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,589 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,591 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,592 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,601 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,602 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,604 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,605 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,606 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,607 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,616 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,618 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,619 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,620 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,622 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,624 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,633 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,635 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,638 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,638 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,641 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,643 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,644 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,646 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,648 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,649 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,651 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,652 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,653 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,654 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,655 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,655 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,656 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,657 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,661 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,662 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,663 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,664 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,665 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,676 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,677 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,679 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,679 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,680 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,681 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,691 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,692 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,693 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,694 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,695 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,706 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,707 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,708 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,709 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,710 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,711 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,722 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,723 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,724 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,724 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,725 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,726 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,736 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,737 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,739 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,739 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,740 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,741 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,751 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,753 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,754 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,754 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,755 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,756 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,766 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,767 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,768 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,768 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,769 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,770 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,781 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,782 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,782 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,782 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,783 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,783 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,796 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,797 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,798 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,798 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,798 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,799 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,811 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,813 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,814 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,815 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,816 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,819 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,826 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,827 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,828 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,828 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,829 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,830 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,841 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,843 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,844 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,845 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,846 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,847 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,858 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,859 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,862 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,862 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,863 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,865 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,872 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,874 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,876 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,876 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,878 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,880 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,888 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,890 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,892 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,893 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,894 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,902 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,904 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,906 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,907 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,908 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,910 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,917 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,919 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,921 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,922 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,924 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,925 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,931 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,933 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,935 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,936 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,938 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,940 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,947 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,949 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,950 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,951 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,952 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,955 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,961 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,964 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,966 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,967 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,968 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,971 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,976 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,978 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,981 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,982 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,983 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,984 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,992 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,994 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:35,996 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:35,997 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:35,999 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,001 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,006 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,008 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,010 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,021 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,023 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,024 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,037 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,038 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,039 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,040 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,041 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,043 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,051 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,053 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,054 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,054 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,055 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,057 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,067 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,069 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,071 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,072 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,073 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,075 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,082 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,084 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,086 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,087 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,088 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,090 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,097 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,099 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,101 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,101 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,103 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,104 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,112 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,113 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,116 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,117 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,118 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,121 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,126 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,128 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,131 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,131 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,132 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,134 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,141 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,143 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,145 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,145 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,148 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,149 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,158 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,159 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,161 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,162 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,163 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,166 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,174 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,178 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,179 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,182 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,184 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,188 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,190 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,192 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,192 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,194 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,195 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,203 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,205 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,206 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,207 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,209 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,218 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,220 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,221 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,222 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,223 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,233 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,235 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,237 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,237 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,238 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,240 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,248 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,250 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,251 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,252 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,253 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,254 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,263 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,265 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,266 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,266 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,267 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,269 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,278 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,280 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,281 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,282 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,283 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,284 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,293 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,295 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,296 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,297 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,298 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,299 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,308 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,310 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,312 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,312 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,313 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,315 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,324 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,325 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,327 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,327 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,329 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,331 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,338 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,340 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,342 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,342 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,344 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,346 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,353 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,355 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,357 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,357 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,359 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,360 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,368 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,370 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,372 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,372 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,374 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,375 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,384 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,386 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,388 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,389 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,392 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,399 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,400 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,402 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,404 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,406 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,413 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,415 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,416 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,417 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,418 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,420 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,429 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,430 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,432 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,432 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,433 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,435 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,443 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,445 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,446 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,446 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,448 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,449 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,458 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,460 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,461 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,462 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,463 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,464 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,474 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,475 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,476 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,477 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,478 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,479 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,488 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,490 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,491 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,492 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,493 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,495 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,503 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,505 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,507 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,507 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,508 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,510 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,519 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,520 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,522 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,522 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,524 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,533 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,535 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,537 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,538 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,540 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,542 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,549 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,550 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,552 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,553 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,554 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,555 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,563 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,565 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,567 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,567 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,569 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,571 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,578 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,580 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,582 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,582 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,584 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,594 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,595 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,598 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,599 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,601 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,603 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,610 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,612 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,613 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,614 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,616 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,623 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,625 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,626 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,627 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,629 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,630 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,638 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,641 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,642 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,643 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,645 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,654 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,656 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,657 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,657 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,658 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,660 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,669 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,671 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,672 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,673 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,674 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,675 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,684 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,685 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,687 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,687 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,688 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,690 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,699 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,701 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,703 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,703 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,706 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,715 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,716 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,718 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,719 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,721 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,723 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,729 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,731 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,733 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,733 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,734 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,736 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,744 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,746 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,748 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,749 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,750 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,752 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,759 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,761 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,762 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,763 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,764 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,765 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,774 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,776 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,778 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,779 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,780 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,782 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,789 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,791 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,793 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,794 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,795 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,797 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,805 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,809 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,810 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,812 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,814 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,820 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,822 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,823 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,824 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,825 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,827 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,834 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,836 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,838 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,839 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,840 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,842 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,849 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,851 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,852 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,853 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,854 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,856 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,864 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,866 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,867 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,868 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,869 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,871 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,879 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,881 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,882 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,883 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,884 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,886 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,894 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,897 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,897 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,898 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,900 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,909 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,911 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,913 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,914 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,915 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,925 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,927 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,929 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,929 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,931 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,933 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,941 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,943 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,945 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,945 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,947 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,948 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,956 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,958 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,960 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,961 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,963 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,965 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,972 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,974 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,976 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,976 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,977 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,979 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,986 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,987 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:36,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:36,992 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:36,995 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,003 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,005 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,008 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,009 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,011 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,014 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,015 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,017 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,021 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,024 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,026 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,031 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,032 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,032 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,033 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,033 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,034 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,045 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,046 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,046 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,047 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,047 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,048 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,060 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,061 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,061 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,062 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,062 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,063 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,075 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,076 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,076 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,077 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,077 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,078 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,090 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,091 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,092 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,093 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,094 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,095 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,105 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,107 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,108 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,109 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,110 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,112 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,120 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,122 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,123 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,123 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,126 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,135 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,137 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,139 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,140 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,142 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,143 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,150 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,152 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,153 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,154 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,155 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,156 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,165 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,167 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,168 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,169 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,170 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,172 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,181 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,182 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,183 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,184 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,185 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,187 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,196 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,197 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,199 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,200 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,201 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,203 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,210 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,212 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,214 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,214 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,215 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,217 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,225 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,227 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,231 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,231 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,233 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,235 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,241 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,243 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,244 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,245 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,246 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,248 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,257 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,258 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,260 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,260 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,262 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,263 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,271 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,273 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,274 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,275 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,276 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,277 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,286 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,288 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,289 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,290 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,291 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,292 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,301 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,303 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,304 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,304 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,305 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,307 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,316 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,318 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,319 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,320 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,321 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,322 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,331 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,333 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,334 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,336 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,338 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,346 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,348 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,350 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,351 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,353 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,355 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,361 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,363 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,364 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,365 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,366 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,368 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,376 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,378 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,379 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,380 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,381 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,383 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,391 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,393 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,394 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,395 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,396 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,398 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,406 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,408 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,409 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,410 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,412 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,414 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,421 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,423 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,424 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,425 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,426 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,428 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,437 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,439 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,442 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,443 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,445 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,446 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,452 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,454 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,456 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,456 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,457 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,459 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,467 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,469 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,471 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,471 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,472 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,474 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,482 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,484 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,486 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,486 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,487 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,488 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,498 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,500 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,502 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,502 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,503 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,505 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,513 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,515 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,516 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,516 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,517 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,519 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,529 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,530 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,531 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,532 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,533 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,534 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,545 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,547 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,549 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,550 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,552 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,554 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,565 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,566 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,569 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,570 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,571 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,572 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,574 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,575 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,576 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,576 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,576 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,577 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,589 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,590 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,591 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,591 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,592 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,593 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,604 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,605 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,606 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,606 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,607 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,608 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,619 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,620 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,621 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,621 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,622 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,623 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,635 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,637 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,639 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,640 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,642 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,643 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,652 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,653 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,655 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,656 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,658 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,660 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,664 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,665 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,666 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,667 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,668 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,680 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,681 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,681 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,682 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,682 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,683 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,695 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,695 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,696 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,697 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,698 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,709 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,710 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,710 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,711 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,711 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,712 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,724 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,725 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,726 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,726 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,726 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,727 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,739 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,740 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,740 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,741 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,741 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,742 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,756 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,757 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,759 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,759 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,760 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,762 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,770 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,772 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,773 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,774 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,775 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,776 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,786 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,788 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,791 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,792 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,793 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,795 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,798 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,800 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,802 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,802 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,804 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,805 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,815 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,817 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,819 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,819 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,820 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,822 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,831 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,832 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,834 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,834 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,835 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,838 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,846 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,848 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,850 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,851 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,852 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,854 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,860 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,863 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,866 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,866 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,868 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,870 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,875 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,877 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,879 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,880 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,882 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,884 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,890 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,892 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,893 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,894 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,897 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,905 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,907 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,909 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,909 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,911 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,921 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,922 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,924 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,924 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,926 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,927 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,936 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,938 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,939 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,940 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,941 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,943 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,950 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,951 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,953 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,953 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,955 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,956 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,964 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,966 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,969 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,969 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,971 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,973 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,980 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,981 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,983 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,983 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,985 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,986 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:37,995 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:37,997 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:37,999 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,000 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,002 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,004 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,011 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,013 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,015 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,015 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,016 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,018 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,027 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,029 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,029 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,031 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,033 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,040 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,042 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,043 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,044 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,045 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,047 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,056 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,058 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,060 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,060 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,062 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,071 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,073 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,075 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,076 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,078 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,081 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,085 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,087 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,090 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,090 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,092 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,093 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,100 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,102 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,104 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,104 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,106 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,108 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,114 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,116 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,117 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,118 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,120 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,122 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,130 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,132 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,134 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,134 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,135 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,137 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,145 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,147 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,148 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,149 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,150 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,151 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,160 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,162 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,163 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,163 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,165 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,166 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,178 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,178 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,179 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,181 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,190 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,192 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,193 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,193 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,195 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,196 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,205 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,207 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,208 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,209 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,210 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,211 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,220 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,222 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,223 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,223 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,225 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,226 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,235 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,237 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,239 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,240 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,241 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,242 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,250 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,252 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,253 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,254 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,255 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,257 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,266 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,267 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,269 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,270 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,272 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,274 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,281 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,282 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,285 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,285 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,287 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,289 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,295 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,297 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,298 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,299 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,300 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,302 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,311 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,312 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,314 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,315 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,316 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,318 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,325 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,328 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,331 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,332 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,333 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,335 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,341 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,342 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,344 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,345 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,347 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,349 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,355 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,357 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,358 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,359 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,360 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,362 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,371 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,372 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,374 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,374 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,375 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,377 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,385 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,387 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,388 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,389 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,391 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,401 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,403 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,404 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,405 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,416 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,418 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,419 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,420 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,421 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,423 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,431 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,433 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,434 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,434 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,438 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,478 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,480 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,481 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,482 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,483 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,485 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,492 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,493 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,494 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,495 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,497 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,507 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,508 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,509 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,509 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,509 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,510 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,523 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,524 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,524 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,525 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,525 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,526 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,537 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,538 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,539 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,539 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,540 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,541 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,552 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,553 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,554 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,555 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,555 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,556 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,567 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,568 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,569 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,569 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,570 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,571 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,582 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,583 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,584 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,584 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,585 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,597 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,598 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,599 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,599 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,600 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,601 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,612 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,613 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,614 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,614 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,615 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,616 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,627 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,628 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,629 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,629 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,630 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,631 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,642 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,643 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,644 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,644 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,645 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,646 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,657 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,658 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,659 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,660 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,661 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,662 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,673 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,676 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,676 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,676 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,679 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,680 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,687 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,688 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,689 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,690 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,691 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,702 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,703 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,704 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,706 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,717 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,718 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,720 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,721 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,722 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,733 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,733 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,735 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,735 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,736 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,747 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,748 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,749 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,749 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,750 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,751 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,762 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,763 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,764 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,764 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,765 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,766 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,777 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,778 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,779 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,780 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,781 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,781 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,792 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,793 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,794 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,795 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,796 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,797 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,856 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,857 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,858 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,859 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,859 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,861 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,869 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,870 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,871 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,872 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,873 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,884 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,885 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,886 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,887 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,888 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,889 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,899 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,900 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,901 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,902 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,903 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,904 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,914 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,915 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,916 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,917 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,918 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,919 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,929 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,930 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,931 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,932 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,932 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,933 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,944 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,945 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,947 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,947 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,948 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,949 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,959 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,960 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,961 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,962 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,962 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,964 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,974 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,975 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,976 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,976 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,977 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,978 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,989 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,990 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,991 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:38,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:38,992 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:38,992 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,004 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,005 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,006 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,006 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,006 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,007 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,019 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,020 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,021 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,021 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,022 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,023 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,034 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,035 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,036 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,036 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,036 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,037 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,049 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,050 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,050 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,051 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,051 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,052 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,064 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,065 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,066 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,066 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,067 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,079 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,080 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,081 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,081 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,081 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,082 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,094 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,095 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,096 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,096 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,097 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,098 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,109 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,111 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,113 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,114 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,115 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,117 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,124 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,125 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,126 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,126 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,127 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,128 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,139 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,141 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,143 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,143 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,145 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,147 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,154 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,155 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,156 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,156 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,157 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,158 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,170 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,172 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,174 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,174 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,178 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,184 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,186 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,189 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,189 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,191 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,193 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,199 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,201 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,203 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,203 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,205 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,207 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,214 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,216 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,217 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,218 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,219 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,221 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,230 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,231 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,233 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,233 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,234 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,236 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,244 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,246 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,248 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,248 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,250 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,251 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,259 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,261 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,262 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,263 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,264 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,265 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,274 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,276 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,277 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,278 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,279 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,281 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,289 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,291 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,293 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,293 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,294 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,295 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,304 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,306 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,308 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,308 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,310 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,312 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,320 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,322 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,323 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,324 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,325 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,327 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,336 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,339 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,340 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,341 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,344 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,349 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,351 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,352 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,353 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,355 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,357 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,364 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,366 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,367 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,368 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,369 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,371 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,380 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,381 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,383 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,383 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,384 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,386 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,394 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,396 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,398 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,399 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,400 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,401 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,410 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,412 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,414 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,414 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,416 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,417 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,425 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,427 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,428 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,429 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,430 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,432 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,440 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,442 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,443 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,443 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,444 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,446 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,456 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,458 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,459 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,459 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,460 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,462 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,470 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,472 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,473 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,473 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,474 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,476 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,485 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,487 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,488 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,488 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,489 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,491 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,500 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,502 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,503 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,504 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,505 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,506 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,515 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,517 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,518 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,519 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,520 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,522 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,531 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,532 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,533 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,534 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,535 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,537 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,546 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,547 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,550 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,550 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,552 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,555 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,561 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,562 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,565 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,565 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,566 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,568 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,575 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,577 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,579 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,580 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,581 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,583 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,591 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,592 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,594 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,594 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,595 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,597 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,605 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,607 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,609 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,609 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,611 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,613 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,620 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,622 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,623 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,624 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,625 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,626 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,635 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,637 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,638 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,639 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,641 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,650 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,652 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,653 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,653 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,654 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,656 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,665 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,667 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,668 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,669 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,670 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,672 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,682 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,683 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,685 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,685 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,686 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,688 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,695 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,697 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,698 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,699 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,700 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,701 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,711 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,712 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,715 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,715 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,717 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,725 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,727 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,729 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,729 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,731 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,732 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,741 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,742 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,744 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,744 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,745 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,747 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,756 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,757 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,760 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,762 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,764 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,766 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,771 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,772 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,775 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,775 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,778 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,781 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,786 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,789 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,791 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,791 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,793 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,795 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,801 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,803 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,805 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,806 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,808 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,816 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,818 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,819 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,820 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,821 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,823 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,831 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,833 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,834 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,834 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,835 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,837 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,846 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,848 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,850 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,850 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,851 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,853 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,861 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,863 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,864 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,864 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,866 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,867 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,876 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,879 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,880 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,881 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,882 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,883 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,891 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,893 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,894 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,894 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,897 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,906 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,908 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,910 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,911 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,912 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,914 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,921 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,922 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,924 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,925 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,926 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,927 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,936 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,938 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,940 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,940 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,941 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,943 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,951 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,953 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,954 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,955 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,956 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,958 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,967 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,968 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,971 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,972 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,973 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,975 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,981 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,983 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,984 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,985 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,987 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,989 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:39,996 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:39,998 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:39,999 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,000 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,002 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,004 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,012 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,014 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,016 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,017 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,019 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,021 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,026 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,028 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,030 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,031 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,032 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,034 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,041 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,043 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,044 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,045 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,047 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,048 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,056 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,058 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,059 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,059 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,061 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,062 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,071 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,072 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,074 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,074 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,075 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,076 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,086 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,088 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,089 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,089 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,091 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,092 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,102 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,103 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,104 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,105 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,106 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,107 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,117 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,119 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,122 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,122 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,126 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,132 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,134 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,136 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,137 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,139 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,141 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,142 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,143 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,144 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,147 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,149 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,151 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,152 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,154 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,155 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,155 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,156 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,157 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,163 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,164 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,165 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,166 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,167 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,168 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,178 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,179 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,180 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,181 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,182 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,183 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,183 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,184 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,184 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,192 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,193 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,194 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,194 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,195 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,197 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,207 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,209 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,209 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,210 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,211 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,222 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,224 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,225 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,226 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,227 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,229 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,237 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,238 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,239 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,240 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,240 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,242 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,254 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,256 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,257 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,258 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,259 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,261 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,268 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,270 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,272 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,273 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,275 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,277 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,284 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,286 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,287 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,288 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,289 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,291 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,298 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,300 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,301 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,302 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,303 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,305 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,314 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,316 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,318 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,318 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,321 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,329 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,331 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,333 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,336 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,338 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,343 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,346 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,348 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,349 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,352 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,354 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,359 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,361 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,362 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,363 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,363 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,364 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,373 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,375 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,377 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,377 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,378 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,380 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,389 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,391 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,392 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,392 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,394 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,404 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,405 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,406 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,406 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,418 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,419 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,420 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,421 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,422 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,422 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,433 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,434 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,435 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,435 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,437 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,448 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,449 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,450 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,451 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,463 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,464 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,465 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,465 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,466 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,466 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,478 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,479 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,480 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,480 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,481 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,482 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,493 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,494 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,496 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,496 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,498 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,499 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,510 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,512 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,512 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,513 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,515 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,523 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,525 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,526 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,526 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,527 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,539 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,539 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,540 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,540 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,541 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,541 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,553 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,555 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,556 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,557 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,558 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,559 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,568 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,570 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,572 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,572 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,574 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,575 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,583 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,585 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,586 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,587 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,589 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,591 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,598 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,600 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,603 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,603 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,605 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,607 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,614 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,615 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,617 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,618 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,619 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,621 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,629 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,631 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,632 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,633 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,634 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,636 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,644 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,646 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,648 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,648 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,649 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,651 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,659 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,660 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,662 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,662 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,664 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,674 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,676 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,677 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,678 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,679 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,681 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,691 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,692 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,693 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,694 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,695 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,707 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,708 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,708 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,709 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,711 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,721 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,722 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,723 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,724 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,725 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,726 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,736 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,737 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,738 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,739 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,740 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,742 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,750 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,752 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,753 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,754 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,755 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,757 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,765 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,767 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,768 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,769 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,770 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,771 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,781 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,782 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,783 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,784 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,785 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,786 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,795 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,797 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,799 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,801 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,803 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,811 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,813 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,815 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,816 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,818 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,821 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,825 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,827 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,831 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,832 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,834 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,836 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,840 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,842 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,844 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,844 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,846 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,848 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,856 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,858 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,860 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,860 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,862 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,864 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,872 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,875 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,875 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,877 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,879 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,887 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,889 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,891 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,891 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,892 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,894 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,901 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,903 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,905 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,905 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,907 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,908 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,916 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,918 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,920 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,921 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,922 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,924 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,931 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,933 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,934 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,934 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,935 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,937 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,947 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,949 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,950 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,951 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,952 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,953 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,962 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,964 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,965 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,966 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,967 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,968 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,977 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,978 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,980 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,981 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,982 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,984 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,993 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:40,995 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:40,996 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:40,997 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,006 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,008 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,010 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,023 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,024 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,027 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,036 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,037 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,038 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,039 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,040 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,041 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,052 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,054 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,056 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,056 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,058 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,059 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,066 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,067 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,069 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,070 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,071 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,072 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,082 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,084 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,086 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,086 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,088 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,089 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,097 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,099 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,100 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,101 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,102 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,104 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,113 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,114 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,116 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,116 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,117 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,119 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,127 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,129 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,130 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,130 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,132 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,133 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,142 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,144 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,145 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,146 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,147 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,148 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,157 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,159 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,160 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,161 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,162 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,164 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,171 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,173 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,174 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,177 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,188 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,189 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,192 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,192 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,194 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,196 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,202 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,204 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,206 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,207 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,210 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,218 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,219 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,221 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,221 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,222 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,233 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,234 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,237 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,239 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,241 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,244 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,247 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,249 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,251 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,252 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,254 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,256 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,263 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,264 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,266 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,267 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,268 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,270 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,277 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,279 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,282 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,282 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,283 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,285 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,292 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,295 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,296 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,297 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,298 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,300 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,308 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,310 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,312 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,312 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,314 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,316 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,323 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,325 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,326 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,326 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,329 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,337 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,339 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,340 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,341 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,342 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,344 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,352 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,354 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,355 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,356 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,357 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,359 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,367 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,369 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,370 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,371 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,372 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,373 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,383 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,385 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,386 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,386 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,387 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,389 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,399 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,400 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,401 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,402 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,403 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,405 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,413 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,415 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,416 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,417 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,418 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,420 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,429 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,431 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,433 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,434 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,439 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,444 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,446 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,448 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,449 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,453 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,458 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,460 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,462 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,463 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,464 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,466 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,474 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,476 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,478 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,481 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,482 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,489 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,490 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,492 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,493 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,494 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,496 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,504 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,506 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,507 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,509 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,511 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,519 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,520 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,523 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,523 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,525 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,526 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,533 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,535 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,537 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,538 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,539 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,541 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,548 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,550 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,551 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,552 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,553 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,555 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,564 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,565 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,567 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,567 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,568 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,570 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,578 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,580 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,581 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,582 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,583 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,593 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,595 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,596 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,597 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,598 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,600 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,610 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,611 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,612 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,613 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,615 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,623 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,625 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,626 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,626 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,627 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,629 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,639 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,642 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,642 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,644 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,645 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,654 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,655 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,658 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,658 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,660 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,662 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,669 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,670 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,672 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,673 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,674 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,676 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,683 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,685 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,687 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,688 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,690 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,693 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,698 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,700 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,701 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,702 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,704 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,706 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,714 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,715 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,717 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,718 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,719 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,721 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,728 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,730 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,733 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,733 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,735 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,737 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,743 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,745 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,747 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,748 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,749 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,751 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,758 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,760 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,761 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,762 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,763 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,765 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,773 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,775 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,776 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,776 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,778 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,779 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,789 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,791 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,793 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,793 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,795 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,797 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,804 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,806 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,807 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,808 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,809 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,811 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,819 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,821 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,822 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,823 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,824 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,825 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,834 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,836 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,837 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,838 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,840 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,841 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,851 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,852 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,854 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,855 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,856 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,858 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,865 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,866 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,869 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,874 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,875 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,876 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,877 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,879 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,880 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,881 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,883 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,893 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,897 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,897 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,899 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,900 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,908 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,910 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,912 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,914 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,915 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,923 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,925 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,926 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,927 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,929 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,931 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,940 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,941 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,943 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,943 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,945 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,946 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,954 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,956 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,957 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,958 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,959 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,960 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,969 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,971 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,972 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,973 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,974 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,975 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,984 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,986 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,987 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,987 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:41,988 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:41,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:41,999 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,001 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,003 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,003 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,004 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,006 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,014 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,016 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,017 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,017 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,018 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,020 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,030 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,031 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,033 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,033 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,034 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,036 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,044 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,046 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,047 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,048 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,049 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,051 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,060 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,061 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,062 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,063 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,064 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,066 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,074 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,076 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,079 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,080 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,081 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,083 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,089 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,091 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,093 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,093 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,094 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,096 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,106 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,107 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,109 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,110 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,111 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,112 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,120 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,122 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,124 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,125 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,126 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,127 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,135 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,137 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,139 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,140 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,141 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,143 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,150 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,152 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,154 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,154 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,156 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,157 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,165 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,167 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,168 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,169 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,170 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,172 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,180 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,182 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,183 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,183 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,184 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,186 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,195 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,197 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,198 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,198 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,199 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,201 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,210 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,212 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,213 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,213 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,214 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,216 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,225 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,227 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,228 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,229 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,230 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,231 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,240 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,242 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,243 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,244 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,245 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,246 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,256 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,257 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,259 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,260 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,261 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,263 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,271 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,273 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,275 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,276 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,278 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,280 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,286 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,287 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,290 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,290 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,292 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,293 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,301 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,302 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,304 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,305 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,306 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,308 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,315 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,317 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,319 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,320 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,321 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,323 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,330 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,332 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,333 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,335 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,337 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,346 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,348 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,350 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,350 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,352 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,353 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,361 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,362 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,365 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,365 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,366 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,368 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,376 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,378 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,380 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,381 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,382 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,384 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,391 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,393 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,394 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,395 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,397 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,398 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,406 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,408 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,409 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,410 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,411 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,412 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,421 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,423 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,424 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,424 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,425 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,427 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,437 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,438 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,440 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,441 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,442 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,443 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,452 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,454 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,455 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,456 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,457 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,458 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,467 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,469 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,471 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,472 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,473 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,475 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,482 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,484 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,485 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,486 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,487 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,489 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,497 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,499 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,501 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,502 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,503 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,505 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,512 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,514 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,515 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,516 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,517 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,519 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,527 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,529 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,533 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,533 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,535 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,538 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,543 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,544 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,546 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,547 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,548 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,550 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,558 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,573 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,574 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,575 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,576 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,578 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,588 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,589 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,592 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,592 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,594 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,596 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,603 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,605 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,607 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,609 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,611 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,618 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,619 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,621 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,622 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,623 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,625 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,633 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,634 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,637 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,637 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,639 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,642 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,648 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,649 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,651 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,652 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,654 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,656 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,662 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,664 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,666 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,668 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,670 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,679 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,681 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,684 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,684 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,686 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,688 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,692 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,694 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,696 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,698 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,700 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,707 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,709 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,711 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,712 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,713 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,715 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,722 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,724 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,726 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,727 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,728 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,729 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,738 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,740 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,742 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,742 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,743 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,745 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,752 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,754 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,757 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,757 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,758 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,760 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,767 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,769 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,771 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,772 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,774 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,775 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,782 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,784 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,785 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,786 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,787 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,789 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,797 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,799 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,801 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,801 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,803 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,804 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,813 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,814 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,816 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,816 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,817 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,818 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,827 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,829 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,830 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,831 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,832 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,833 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,842 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,844 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,845 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,845 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,846 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,848 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,857 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,859 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,860 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,861 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,862 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,863 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,872 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,874 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,875 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,875 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,876 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,878 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,887 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,889 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,891 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,892 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,893 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,895 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,902 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,904 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,905 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,906 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,907 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,908 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,918 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,919 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,921 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,922 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,923 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,925 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,932 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,934 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,935 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,936 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,937 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,939 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,947 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,949 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,951 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,953 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,954 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,956 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,962 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,964 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,966 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,966 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,967 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,969 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,978 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,979 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,981 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,982 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,983 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,984 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,992 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,994 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:42,995 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:42,996 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:42,998 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,000 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,007 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,009 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,012 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,013 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,014 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,016 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,024 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,025 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,037 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,040 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,042 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,043 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,044 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,046 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,053 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,055 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,056 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,056 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,057 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,059 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,069 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,070 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,072 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,072 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,073 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,075 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,083 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,085 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,086 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,086 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,088 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,089 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,098 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,100 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,102 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,102 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,103 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,105 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,113 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,115 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,117 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,118 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,121 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,122 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,129 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,131 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,133 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,134 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,136 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,139 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,143 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,145 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,147 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,148 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,149 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,151 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,158 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,160 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,162 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,163 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,164 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,166 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,173 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,175 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,176 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,177 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,178 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,181 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,189 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,190 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,192 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,193 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,194 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,196 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,203 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,205 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,207 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,208 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,209 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,210 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,218 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,220 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,222 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,222 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,223 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,225 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,233 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,234 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,236 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,237 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,239 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,240 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,248 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,250 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,251 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,252 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,253 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,254 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,264 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,265 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,266 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,267 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,268 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,269 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,278 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,280 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,281 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,282 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,283 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,284 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,293 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,295 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,296 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,297 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,298 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,300 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,309 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,310 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,312 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,314 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,316 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,323 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,325 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,327 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,328 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,330 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,331 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,339 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,340 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,342 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,343 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,344 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,346 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,354 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,356 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,358 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,358 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,360 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,361 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,368 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,370 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,372 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,373 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,374 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,376 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,383 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,385 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,387 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,387 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,389 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,390 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,398 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,400 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,401 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,402 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,403 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,405 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,414 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,416 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,417 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,418 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,419 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,422 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,429 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,431 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,432 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,433 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,434 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,436 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,444 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,446 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,448 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,448 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,449 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,451 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,459 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,461 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,462 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,463 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,464 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,465 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,474 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,476 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,478 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,478 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,480 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,481 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,489 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,491 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,492 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,493 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,494 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,495 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,505 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,506 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,507 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,509 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,510 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,520 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,521 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,523 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,546 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,548 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,553 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,554 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,556 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,558 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,565 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,566 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,569 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,570 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,580 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,581 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,582 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,595 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,597 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,598 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,609 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,612 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,613 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,614 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,616 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,624 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,626 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,627 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,628 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,630 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,632 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,640 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,641 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,643 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,643 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,645 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,646 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,655 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,657 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,658 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,659 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,660 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,661 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,671 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,672 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,674 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,675 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,677 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,678 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,685 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,687 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,688 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,690 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,691 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,700 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,702 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,703 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,704 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,706 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,715 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,717 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,718 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,718 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,720 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,721 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,730 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,732 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,733 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,733 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,734 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,736 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,745 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,747 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,748 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,749 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,750 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,752 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,761 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,763 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,765 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,766 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,767 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,769 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,775 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,777 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,779 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,779 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,781 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,782 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,791 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,792 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,794 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,794 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,796 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,798 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,805 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,809 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,809 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,811 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,813 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,821 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,823 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,824 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,825 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,827 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,829 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,835 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,838 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,840 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,841 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,842 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,844 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,850 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,852 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,853 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,854 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,855 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,856 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,865 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,866 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,866 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,866 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,867 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,867 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,880 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,881 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,881 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,881 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,882 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,883 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,895 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,896 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,896 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,897 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,898 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,911 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,912 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,912 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,913 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,913 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,926 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,927 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,929 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,929 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,931 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,932 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,941 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,943 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,945 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,945 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,947 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,948 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,956 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,958 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,960 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,960 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,962 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,964 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,971 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,973 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,974 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,975 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,975 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,977 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,986 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,988 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:43,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:43,992 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:43,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,001 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,003 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,005 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,006 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,007 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,009 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,016 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,018 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,019 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,020 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,022 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,023 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,032 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,034 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,035 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,036 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,038 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,040 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,048 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,050 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,052 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,053 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,055 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,056 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,062 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,064 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,066 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,067 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,069 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,077 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,079 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,081 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,081 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,082 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,084 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,092 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,094 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,095 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,096 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,097 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,098 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,107 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,109 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,111 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,111 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,112 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,114 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,123 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,125 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,126 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,127 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,128 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,137 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,139 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,140 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,141 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,142 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,143 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,152 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,154 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,155 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,156 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,157 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,158 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,167 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,169 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,171 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,171 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,172 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,174 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,182 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,184 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,186 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,187 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,189 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,191 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,198 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,200 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,202 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,202 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,204 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,206 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,213 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,214 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,216 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,216 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,218 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,219 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,228 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,230 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,232 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,233 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,234 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,236 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,243 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,245 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,247 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,247 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,249 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,250 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,258 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,260 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,262 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,263 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,265 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,266 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,273 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,275 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,278 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,279 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,281 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,283 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,289 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,290 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,293 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,293 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,295 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,296 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,303 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,305 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,306 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,307 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,308 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,310 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,318 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,322 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,322 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,323 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,325 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,335 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,336 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,337 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,338 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,340 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,348 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,350 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,352 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,352 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,354 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,355 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,363 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,365 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,366 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,366 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,367 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,369 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,378 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,380 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,381 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,382 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,383 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,384 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,393 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,395 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,397 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,398 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,400 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,402 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,408 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,410 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,412 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,412 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,413 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,415 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,423 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,425 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,426 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,427 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,428 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,430 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,438 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,440 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,441 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,442 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,444 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,445 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,454 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,456 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,458 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,458 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,460 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,461 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,468 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,470 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,472 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,473 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,474 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,476 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,484 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,486 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,488 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,489 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,490 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,492 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,499 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,500 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,502 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,502 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,504 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,506 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,513 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,515 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,516 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,517 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,518 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,520 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,528 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,530 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,532 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,532 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,533 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,534 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,543 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,545 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,546 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,546 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,547 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,549 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,559 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,560 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,562 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,563 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,564 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,565 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,573 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,575 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,576 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,577 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,578 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,579 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,588 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,590 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,591 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,592 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,593 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,595 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,603 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,605 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,607 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,607 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,609 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,610 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,618 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,620 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,622 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,623 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,624 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,625 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,634 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,635 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,637 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,638 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,642 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,649 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,651 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,652 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,653 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,654 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,656 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,664 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,666 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,668 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,668 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,670 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,671 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,679 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,681 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,682 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,683 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,684 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,685 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,695 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,697 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,699 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,699 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,700 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,702 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,710 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,712 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,714 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,715 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,716 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,718 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,725 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,727 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,728 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,729 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,731 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,732 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,740 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,742 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,743 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,744 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,744 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,746 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,755 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,757 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,758 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,759 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,760 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,761 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,770 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,772 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,773 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,774 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,775 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,776 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,786 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,787 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,788 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,789 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,790 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,792 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,800 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,802 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,803 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,804 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,805 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,806 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,815 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,817 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,819 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,820 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,822 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,823 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,830 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,832 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,833 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,834 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,835 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,837 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,845 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,847 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,848 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,849 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,850 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,851 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,860 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,862 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,864 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,864 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,865 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,867 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,875 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,877 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,879 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,879 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,881 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,883 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,890 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,892 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,893 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,894 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,897 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,905 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,907 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,909 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,909 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,911 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,922 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,924 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,926 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,926 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,928 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,930 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,936 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,938 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,940 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,941 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,943 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,945 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,950 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,952 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,953 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,954 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,955 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,957 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,966 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,967 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,969 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,970 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,971 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,973 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,981 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,982 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,983 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,984 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,985 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,986 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,995 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:44,997 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:44,998 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:44,999 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,000 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,002 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,011 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,013 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,013 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,014 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,026 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,028 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,030 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,031 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,033 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,036 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,041 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,042 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,044 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,044 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,046 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,047 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,055 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,057 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,058 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,058 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,059 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,060 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,070 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,071 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,072 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,073 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,073 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,074 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,085 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,086 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,087 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,088 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,089 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,090 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,100 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,101 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,102 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,102 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,103 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,104 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,115 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,116 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,117 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,117 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,118 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,119 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,130 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,131 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,132 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,133 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,134 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,136 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,146 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,147 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,149 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,149 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,150 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,152 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,160 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,162 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,163 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,164 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,165 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,166 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,177 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,178 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,178 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,179 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,181 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,190 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,192 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,193 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,194 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,195 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,196 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,206 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,209 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,210 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,211 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,212 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,221 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,223 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,225 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,226 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,227 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,236 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,238 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,240 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,241 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,242 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,244 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,251 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,253 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,254 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,255 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,256 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,258 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,266 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,268 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,270 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,270 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,272 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,274 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,281 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,283 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,284 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,285 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,286 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,289 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,296 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,298 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,300 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,302 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,304 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,306 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,312 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,314 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,317 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,317 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,318 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,319 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,329 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,330 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,332 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,333 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,333 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,335 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,343 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,343 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,347 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,347 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,351 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,357 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,358 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,361 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,361 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,362 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,363 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,373 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,373 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,374 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,375 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,377 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,379 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,386 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,388 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,390 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,405 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,406 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,407 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,408 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,410 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,416 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,418 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,420 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,420 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,421 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,423 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,432 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,433 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,434 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,435 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,438 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,446 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,448 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,450 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,451 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,453 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,455 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,461 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,463 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,465 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,465 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,467 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,468 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,478 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,480 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,482 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,483 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,485 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,487 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,492 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,494 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,496 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,497 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,498 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,500 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,507 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,509 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,511 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,512 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,514 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,516 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,522 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,524 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,526 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,527 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,529 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,536 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,539 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,540 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,542 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,542 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,543 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,552 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,554 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,557 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,558 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,560 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,562 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,568 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,569 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,571 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,572 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,573 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,575 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,582 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,584 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,585 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,587 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,588 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,597 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,599 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,602 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,603 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,604 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,606 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,612 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,614 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,615 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,615 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,616 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,618 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,627 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,629 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,631 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,631 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,632 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,634 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,643 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,644 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,646 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,646 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,648 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,650 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,662 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,664 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,667 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,668 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,671 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,672 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,674 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,676 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,677 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,679 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,682 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,690 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,692 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,694 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,695 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,697 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,699 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,703 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,704 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,705 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,706 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,707 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,717 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,718 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,719 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,721 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,724 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,732 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,733 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,734 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,735 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,735 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,747 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,749 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,751 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,751 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,753 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,754 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,762 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,763 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,764 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,765 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,765 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,766 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,777 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,778 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,779 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,779 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,780 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,781 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,792 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,794 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,795 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,796 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,797 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,799 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,807 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,809 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,810 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,810 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,812 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,813 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,822 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,824 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,825 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,826 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,827 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,828 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,838 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,840 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,842 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,843 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,844 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,845 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,854 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,855 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,857 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,858 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,859 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,861 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,869 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,871 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,873 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,874 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,875 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,877 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,883 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,885 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,886 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,887 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,888 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,890 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,898 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,900 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,901 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,902 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,904 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,906 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,913 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,915 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,917 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,918 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,919 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,921 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,928 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,930 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,932 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,932 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,934 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,935 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,943 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,945 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,946 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,947 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,949 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,951 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,958 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,960 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,961 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,962 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,963 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,965 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,975 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,976 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,978 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,979 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,980 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,982 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,990 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,991 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,992 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:45,993 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:45,994 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:45,995 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,005 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,007 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,009 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,019 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,021 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,022 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,023 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,024 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,025 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,034 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,036 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,037 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,038 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,039 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,040 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,050 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,051 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,053 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,053 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,055 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,056 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,066 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,068 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,071 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,071 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,073 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,076 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,082 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,084 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,086 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,086 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,088 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,090 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,096 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,098 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,100 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,101 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,103 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,105 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,111 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,112 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,114 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,115 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,116 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,118 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,126 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,127 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,130 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,131 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,133 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,134 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,141 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,142 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,144 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,144 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,146 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,149 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,155 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,158 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,160 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,160 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,162 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,165 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,171 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,172 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,174 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,178 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,185 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,187 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,189 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,190 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,192 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,202 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,203 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,205 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,207 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,215 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,217 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,218 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,219 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,221 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,223 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,230 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,232 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,234 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,234 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,236 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,238 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,245 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,247 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,248 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,249 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,250 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,252 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,261 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,262 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,264 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,265 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,266 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,267 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,275 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,277 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,278 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,279 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,280 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,282 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,291 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,292 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,294 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,295 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,296 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,297 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,305 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,307 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,309 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,310 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,312 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,313 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,321 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,323 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,325 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,326 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,329 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,336 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,338 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,340 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,341 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,343 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,346 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,351 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,352 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,354 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,355 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,356 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,358 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,365 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,367 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,369 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,369 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,371 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,373 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,380 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,382 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,384 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,384 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,386 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,387 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,395 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,398 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,400 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,401 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,403 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,404 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,410 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,412 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,414 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,414 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,415 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,417 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,426 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,428 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,429 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,430 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,431 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,433 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,441 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,443 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,444 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,444 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,446 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,447 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,456 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,458 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,459 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,460 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,461 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,462 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,471 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,473 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,474 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,475 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,475 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,477 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,486 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,488 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,490 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,491 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,492 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,493 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,501 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,503 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,505 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,506 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,508 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,511 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,516 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,518 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,520 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,521 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,523 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,531 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,533 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,536 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,537 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,539 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,541 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,546 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,548 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,550 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,551 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,552 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,554 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,562 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,563 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,565 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,566 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,567 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,569 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,576 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,578 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,580 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,581 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,582 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,584 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,591 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,593 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,595 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,595 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,596 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,598 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,606 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,608 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,610 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,611 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,612 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,614 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,622 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,624 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,625 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,625 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,626 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,628 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,637 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,639 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,640 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,641 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,642 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,644 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,652 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,654 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,655 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,656 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,657 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,658 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,667 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,669 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,671 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,671 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,673 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,674 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,681 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,683 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,684 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,684 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,685 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,687 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,696 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,698 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,700 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,700 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,701 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,703 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,712 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,713 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,715 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,716 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,718 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,720 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,726 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,728 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,731 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,731 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,732 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,743 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,744 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,746 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,747 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,749 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,750 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,757 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,759 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,760 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,761 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,763 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,765 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,773 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,774 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,776 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,776 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,778 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,780 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,788 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,789 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,791 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,792 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,793 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,795 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,802 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,804 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,806 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,806 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,808 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,809 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,818 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,819 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,821 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,822 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,824 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,825 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,832 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,834 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,835 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,836 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,838 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,840 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,848 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,850 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,851 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,852 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,853 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,854 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,863 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,865 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,866 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,866 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,868 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,869 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,878 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,880 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,881 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,882 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,883 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,884 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,893 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,897 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,898 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,899 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,909 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,910 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,912 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,913 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,915 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,924 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,925 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,927 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,928 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,930 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,932 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,939 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,940 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,942 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,943 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,944 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,946 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,953 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,955 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,958 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,958 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,960 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,962 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,968 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,971 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,973 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,973 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,975 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,976 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,983 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,985 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,986 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,987 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:46,989 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:46,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:46,999 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,000 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,002 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,003 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,005 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,006 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,013 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,015 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,016 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,017 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,018 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,020 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,028 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,030 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,032 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,033 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,034 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,036 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,043 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,045 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,046 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,047 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,049 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,050 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,058 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,060 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,061 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,062 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,064 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,075 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,077 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,079 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,080 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,082 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,083 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,089 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,091 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,092 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,093 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,094 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,095 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,104 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,106 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,107 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,108 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,109 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,111 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,119 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,121 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,122 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,123 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,125 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,135 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,136 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,139 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,139 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,141 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,144 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,149 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,151 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,153 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,154 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,156 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,158 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,163 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,165 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,167 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,167 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,169 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,172 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,179 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,180 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,183 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,183 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,185 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,187 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,195 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,196 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,199 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,200 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,201 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,202 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,209 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,211 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,213 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,214 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,215 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,217 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,224 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,226 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,228 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,228 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,230 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,232 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,239 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,241 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,243 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,243 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,245 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,247 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,256 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,257 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,259 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,259 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,260 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,262 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,271 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,273 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,276 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,276 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,278 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,280 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,286 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,287 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,289 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,290 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,291 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,293 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,300 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,302 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,303 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,304 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,305 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,306 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,317 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,319 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,321 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,322 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,324 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,325 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,330 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,332 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,334 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,336 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,338 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,345 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,347 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,350 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,351 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,353 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,355 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,360 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,362 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,364 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,365 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,366 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,367 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,375 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,376 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,378 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,379 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,381 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,382 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,390 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,391 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,392 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,392 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,393 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,393 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,405 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,406 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,407 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,408 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,408 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,420 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,421 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,422 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,423 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,423 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,424 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,435 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,437 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,437 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,438 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,439 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,452 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,454 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,454 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,456 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,457 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,465 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,467 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,468 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,469 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,470 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,472 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,480 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,482 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,483 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,483 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,484 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,486 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,495 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,497 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,498 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,498 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,499 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,501 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,512 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,513 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,514 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,515 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,516 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,517 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,527 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,528 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,529 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,530 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,531 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,532 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,541 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,543 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,544 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,545 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,546 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,547 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,557 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,558 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,561 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,561 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,562 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,564 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,571 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,573 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,574 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,575 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,576 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,578 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,586 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,588 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,590 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,590 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,592 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,593 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,602 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,603 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,606 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,607 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,608 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,610 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,615 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,617 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,618 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,619 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,621 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,623 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,630 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,632 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,633 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,634 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,636 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,638 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,646 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,648 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,650 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,650 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,652 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,653 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,660 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,662 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,664 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,665 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,666 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,668 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,676 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,678 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,680 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,681 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,682 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,684 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,690 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,692 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,693 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,694 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,695 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,707 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,708 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,709 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,710 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,711 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,721 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,722 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,723 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,724 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,725 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,726 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,736 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,738 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,739 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,740 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,741 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,743 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,751 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,753 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,754 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,755 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,756 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,757 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,767 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,768 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,771 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,771 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,773 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,774 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,781 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,783 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,784 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,785 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,786 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,788 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,796 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,798 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,800 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,800 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,801 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,803 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,812 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,813 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,815 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,815 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,816 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,818 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,827 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,829 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,842 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,843 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,844 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,847 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,857 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,859 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,860 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,861 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,863 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,864 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,873 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,874 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,876 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,876 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,877 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,879 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,887 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,889 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,891 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,891 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,892 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,893 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,902 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,903 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,905 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,905 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,906 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,908 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,917 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,919 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,920 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,921 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,922 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,923 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,932 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,934 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,935 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,935 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,937 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,938 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,947 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,949 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,950 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,951 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,952 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,954 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,963 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,964 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,966 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,966 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,968 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,970 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,982 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,984 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,986 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,987 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:47,989 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:47,991 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:47,999 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,001 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,004 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,005 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,006 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,010 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,011 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,014 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,014 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,015 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,023 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,024 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,024 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,025 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,026 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,038 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,039 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,041 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,041 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,042 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,042 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,052 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,053 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,054 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,054 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,055 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,056 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,067 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,068 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,069 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,070 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,071 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,072 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,084 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,085 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,087 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,087 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,089 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,090 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,098 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,099 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,100 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,100 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,101 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,102 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,113 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,114 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,115 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,115 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,115 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,116 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,128 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,130 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,131 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,132 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,133 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,135 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,143 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,144 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,146 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,146 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,147 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,149 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,158 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,160 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,161 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,162 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,163 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,165 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,173 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,175 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,177 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,178 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,179 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,181 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,189 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,191 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,193 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,193 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,194 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,197 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,203 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,205 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,206 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,207 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,210 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,218 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,220 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,223 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,223 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,225 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,226 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,234 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,235 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,238 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,239 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,241 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,243 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,248 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,250 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,252 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,252 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,254 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,256 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,263 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,265 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,267 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,267 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,268 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,270 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,279 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,281 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,283 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,284 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,286 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,288 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,293 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,295 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,298 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,298 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,300 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,301 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,308 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,310 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,312 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,314 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,317 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,323 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,325 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,326 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,327 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,328 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,329 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,338 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,340 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,342 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,342 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,343 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,345 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,353 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,355 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,356 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,357 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,358 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,359 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,368 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,370 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,372 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,372 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,373 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,375 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,383 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,385 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,387 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,388 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,389 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,392 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,399 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,401 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,403 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,406 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,408 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,413 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,415 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,417 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,417 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,419 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,421 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,429 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,431 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,433 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,434 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,435 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,437 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,443 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,445 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,447 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,447 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,448 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,450 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,458 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,459 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,460 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,460 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,462 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,465 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,474 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,475 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,477 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,478 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,479 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,481 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,489 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,491 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,492 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,493 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,497 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,504 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,506 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,508 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,510 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,512 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,519 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,520 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,522 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,522 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,524 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,526 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,533 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,535 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,536 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,537 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,538 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,540 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,548 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,550 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,552 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,552 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,553 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,555 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,563 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,565 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,566 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,567 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,568 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,570 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,578 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,580 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,581 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,582 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,583 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,584 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,594 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,595 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,597 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,597 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,599 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,600 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,610 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,612 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,613 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,614 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,615 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,623 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,625 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,627 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,627 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,629 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,630 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,639 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,642 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,643 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,644 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,647 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,654 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,655 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,657 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,658 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,659 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,661 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,668 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,671 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,673 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,673 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,675 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,676 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,684 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,686 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,688 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,688 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,690 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,692 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,699 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,701 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,702 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,703 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,704 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,706 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,714 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,716 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,717 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,718 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,719 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,721 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,728 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,730 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,732 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,732 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,733 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,744 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,746 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,747 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,748 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,749 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,750 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,759 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,761 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,763 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,763 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,765 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,766 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,774 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,776 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,777 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,777 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,779 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,780 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,789 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,791 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,792 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,792 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,793 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,795 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,806 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,808 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,809 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,810 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,812 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,821 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,822 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,824 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,825 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,826 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,828 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,836 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,838 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,842 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,843 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,845 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,848 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,851 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,853 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,855 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,856 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,856 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,857 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,865 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,867 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,868 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,869 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,870 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,872 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,880 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,881 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,882 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,882 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,883 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,884 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,895 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,897 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,899 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,899 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,901 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,902 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,910 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,912 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,914 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,915 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,916 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,918 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,925 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,927 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,929 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,929 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,931 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,933 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,940 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,942 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,944 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,944 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,946 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,949 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,955 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,957 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,958 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,959 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,960 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,962 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,970 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,972 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,973 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,974 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,975 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,976 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,985 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,986 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,988 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:48,988 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:48,990 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:48,991 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,001 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,002 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,004 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,004 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,005 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,007 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,015 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,017 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,018 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,019 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,020 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,021 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,031 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,032 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,034 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,035 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,037 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,039 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,046 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,047 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,049 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,049 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,051 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,053 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,061 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,063 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,066 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,067 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,069 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,076 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,078 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,080 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,081 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,082 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,083 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,091 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,094 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,096 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,097 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,099 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,100 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,106 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,108 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,110 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,111 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,112 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,115 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,122 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,126 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,127 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,128 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,130 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,136 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,138 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,141 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,141 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,142 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,144 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,151 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,153 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,154 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,155 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,157 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,158 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,166 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,168 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,169 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,170 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,171 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,172 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,181 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,183 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,184 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,184 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,185 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,187 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,197 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,199 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,200 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,201 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,202 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,204 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,212 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,213 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,215 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,215 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,216 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,218 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,227 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,228 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,230 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,231 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,233 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,235 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,243 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,245 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,248 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,248 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,250 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,252 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,254 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,255 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,258 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,259 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,279 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,281 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,283 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,284 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,286 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,286 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,288 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,289 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,290 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,291 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,292 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,301 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,302 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,303 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,303 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,304 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,305 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,316 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,317 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,318 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,319 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,321 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,331 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,332 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,332 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,333 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,333 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,334 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,346 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,347 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,348 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,348 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,349 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,361 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,362 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,363 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,363 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,364 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,365 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,376 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,377 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,378 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,378 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,379 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,380 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,391 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,392 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,392 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,392 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,393 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,393 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,406 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,407 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,407 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,408 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,409 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,421 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,422 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,423 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,423 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,424 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,424 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,436 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,437 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,437 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,438 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,438 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,439 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,451 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,452 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,452 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,452 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,453 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,453 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,466 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,467 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,469 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,469 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,471 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,472 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,482 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,483 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,485 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,485 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,486 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,488 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,497 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,499 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,501 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,502 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,503 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,504 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,512 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,514 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,516 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,516 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,518 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,520 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,527 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,529 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,531 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,532 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,533 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,535 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,542 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,544 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,546 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,547 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,548 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,550 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,557 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,560 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,562 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,563 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,565 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,567 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,572 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,574 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,576 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,577 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,578 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,580 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,587 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,589 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,591 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,591 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,592 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,594 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,602 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,604 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,607 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,609 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,611 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,617 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,619 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,621 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,622 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,624 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,627 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,632 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,634 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,635 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,636 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,637 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,639 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,648 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,649 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,651 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,651 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,653 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,654 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,662 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,664 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,666 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,668 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,670 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,678 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,679 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,681 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,682 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,684 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,686 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,692 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,693 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,694 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,694 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,695 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,708 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,709 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,710 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,710 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,711 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,712 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,723 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,724 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,725 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,725 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,726 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,727 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,739 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,740 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,742 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,742 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,743 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,745 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,754 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,755 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,756 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,756 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,757 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,758 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,769 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,770 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,771 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,771 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,772 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,773 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,784 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,786 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,787 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,788 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,789 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,791 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,801 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,802 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,803 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,804 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,806 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,814 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,815 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,815 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,816 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,816 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,817 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,829 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,830 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,831 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,831 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,832 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,833 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,844 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,846 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,847 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,847 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,848 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,850 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,860 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,862 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,863 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,864 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,865 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,866 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,875 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,877 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,878 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,879 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,880 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,882 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,890 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,892 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,893 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,894 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,905 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,907 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,908 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,909 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,910 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,920 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,922 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,925 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,925 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,927 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,929 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,935 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,937 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,939 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,939 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,941 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,942 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,950 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,952 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,953 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,954 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,956 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,957 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,965 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,967 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,968 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,969 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,970 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,972 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,981 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,982 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,984 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,984 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,985 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,987 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:49,996 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:49,997 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:49,999 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,000 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,002 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,003 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,014 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,015 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,016 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,027 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,028 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,030 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,031 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,040 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,042 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,043 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,044 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,045 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,046 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,055 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,057 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,058 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,058 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,060 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,061 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,071 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,072 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,074 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,074 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,075 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,077 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,085 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,087 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,089 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,090 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,092 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,094 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,101 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,103 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,106 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,107 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,109 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,111 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,115 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,117 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,118 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,119 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,120 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,122 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,131 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,132 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,134 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,135 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,136 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,139 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,146 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,147 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,149 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,150 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,151 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,154 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,160 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,162 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,164 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,165 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,166 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,168 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,177 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,179 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,179 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,181 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,183 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,191 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,192 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,193 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,194 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,196 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,198 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,205 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,207 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,208 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,209 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,210 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,212 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,221 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,223 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,225 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,226 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,227 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,236 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,238 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,239 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,240 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,241 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,243 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,251 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,253 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,254 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,255 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,256 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,257 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,265 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,267 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,270 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,281 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,283 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,284 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,285 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,286 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,287 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,296 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,298 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,300 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,300 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,302 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,303 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,311 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,313 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,315 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,315 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,317 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,319 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,326 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,328 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,329 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,330 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,331 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,332 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,341 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,343 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,345 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,345 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,347 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,348 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,356 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,358 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,359 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,360 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,361 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,362 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,372 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,374 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,375 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,376 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,377 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,379 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,386 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,388 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,390 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,390 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,392 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,393 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,400 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,402 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,403 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,406 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,415 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,417 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,418 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,419 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,421 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,423 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,431 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,432 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,434 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,435 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,438 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,446 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,447 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,449 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,453 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,460 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,462 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,464 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,464 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,466 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,467 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,476 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,477 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,479 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,481 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,482 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,490 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,492 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,493 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,494 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,496 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,506 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,507 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,509 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,510 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,512 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,514 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,521 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,522 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,524 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,525 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,526 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,530 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,569 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,570 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,571 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,571 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,572 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,572 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,581 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,582 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,583 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,584 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,584 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,596 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,597 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,599 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,599 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,600 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,601 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,611 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,612 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,613 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,614 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,614 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,615 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,626 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,627 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,628 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,628 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,629 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,630 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,641 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,642 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,643 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,643 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,644 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,645 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,656 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,658 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,659 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,660 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,661 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,663 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,672 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,674 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,675 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,676 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,677 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,678 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,688 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,689 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,691 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,692 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,693 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,694 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,702 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,704 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,705 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,707 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,708 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,717 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,719 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,721 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,721 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,723 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,724 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,732 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,734 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,735 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,735 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,737 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,738 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,747 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,749 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,751 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,751 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,752 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,754 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,762 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,764 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,766 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,766 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,768 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,769 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,784 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,785 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,787 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,787 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,789 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,790 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,792 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,794 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,796 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,797 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,798 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,800 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,807 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,809 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,811 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,812 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,813 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,815 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,823 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,825 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,826 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,827 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,829 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,830 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,838 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,840 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,842 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,843 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,844 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,846 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,853 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,855 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,857 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,857 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,858 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,860 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,868 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,870 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,872 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,873 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,874 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,876 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,885 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,886 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,888 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,888 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,891 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,892 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,899 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,900 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,902 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,902 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,903 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,905 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,915 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,917 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,918 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,919 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,920 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,921 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,930 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,931 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,932 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,932 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,932 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,933 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,945 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,947 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,948 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,949 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,950 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,952 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,959 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,961 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,963 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,963 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,964 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,966 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,974 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,976 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,977 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,978 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,979 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,980 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,989 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,991 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:50,994 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:50,996 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:50,998 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,004 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,006 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,009 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,014 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,019 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,022 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,024 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,024 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,036 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,037 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,040 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,041 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,043 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,045 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,049 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,052 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,054 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,055 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,056 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,057 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,064 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,067 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,069 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,069 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,071 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,072 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,081 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,083 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,085 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,086 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,087 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,089 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,095 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,097 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,099 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,100 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,102 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,104 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,110 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,112 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,114 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,115 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,116 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,117 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,125 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,127 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,128 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,129 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,130 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,132 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,140 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,142 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,144 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,144 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,145 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,147 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,155 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,157 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,158 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,159 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,160 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,161 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,171 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,172 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,174 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,178 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,185 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,187 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,188 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,189 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,190 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,192 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,202 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,204 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,206 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,207 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,210 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,216 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,217 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,220 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,221 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,222 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,232 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,233 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,235 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,236 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,238 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,240 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,247 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,248 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,250 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,251 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,252 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,254 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,262 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,264 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,266 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,267 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,268 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,271 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,276 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,278 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,280 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,281 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,282 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,284 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,291 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,293 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,294 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,294 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,296 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,297 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,306 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,308 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,310 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,311 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,313 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,316 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,322 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,323 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,325 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,326 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,328 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,337 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,338 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,340 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,340 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,342 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,343 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,352 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,354 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,356 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,357 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,358 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,360 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,367 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,368 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,369 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,370 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,371 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,373 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,381 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,383 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,384 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,385 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,386 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,387 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,397 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,398 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,400 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,400 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,402 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,403 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,411 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,413 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,414 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,415 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,416 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,417 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,427 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,428 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,431 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,431 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,433 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,435 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,442 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,443 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,445 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,446 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,447 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,449 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,456 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,458 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,459 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,460 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,462 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,464 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,472 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,473 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,475 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,475 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,476 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,478 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,486 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,488 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,491 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,491 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,492 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,494 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,501 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,503 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,505 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,506 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,507 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,509 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,516 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,518 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,519 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,520 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,522 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,523 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,531 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,533 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,534 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,535 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,536 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,537 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,546 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,548 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,549 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,550 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,551 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,553 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,563 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,564 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,566 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,567 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,568 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,570 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,577 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,579 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,580 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,581 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,582 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,584 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,592 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,594 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,595 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,596 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,597 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,599 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,607 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,609 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,610 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,611 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,612 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,613 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,622 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,624 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,625 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,626 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,627 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,628 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,638 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,642 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,642 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,643 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,645 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,652 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,654 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,655 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,656 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,657 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,658 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,667 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,669 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,671 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,672 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,673 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,675 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,682 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,684 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,687 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,687 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,689 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,691 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,697 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,699 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,701 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,702 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,703 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,705 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,712 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,714 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,716 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,716 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,717 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,727 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,729 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,731 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,732 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,733 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,742 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,744 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,746 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,746 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,748 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,750 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,757 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,759 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,760 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,761 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,762 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,764 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,772 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,774 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,776 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,777 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,778 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,780 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,787 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,789 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,791 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,791 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,792 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,794 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,802 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,804 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,806 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,806 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,809 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,817 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,819 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,820 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,821 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,822 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,824 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,832 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,834 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,835 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,836 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,837 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,839 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,847 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,849 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,851 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,852 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,853 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,855 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,862 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,864 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,865 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,866 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,867 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,869 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,877 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,879 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,882 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,883 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,884 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,886 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,893 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,894 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,896 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,899 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,900 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,908 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,910 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,913 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,915 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,917 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,922 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,924 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,926 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,927 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,929 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,932 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,938 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,941 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,942 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,943 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,945 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,946 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,952 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,954 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,956 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,956 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,958 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,960 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,968 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,969 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,971 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,972 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,973 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,975 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,983 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,985 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,987 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,988 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,990 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:51,992 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:51,997 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:51,999 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,001 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,002 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,004 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,006 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,013 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,014 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,016 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,016 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,017 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,019 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,027 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,029 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,031 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,032 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,033 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,035 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,042 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,044 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,046 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,047 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,049 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,051 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,058 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,059 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,061 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,062 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,063 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,073 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,074 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,076 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,077 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,078 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,080 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,087 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,089 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,091 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,092 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,093 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,094 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,102 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,104 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,106 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,106 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,107 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,109 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,118 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,120 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,122 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,123 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,125 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,126 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,132 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,134 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,135 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,136 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,138 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,140 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,148 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,150 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,152 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,152 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,155 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,157 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,162 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,164 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,165 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,166 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,167 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,170 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,177 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,179 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,180 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,181 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,182 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,183 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,192 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,194 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,195 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,196 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,197 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,199 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,207 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,209 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,210 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,211 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,212 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,213 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,222 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,224 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,225 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,225 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,226 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,228 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,237 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,239 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,241 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,242 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,243 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,244 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,252 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,254 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,256 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,257 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,259 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,261 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,268 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,269 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,272 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,272 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,274 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,276 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,282 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,284 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,287 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,287 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,289 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,291 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,298 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,299 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,301 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,302 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,303 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,305 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,315 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,317 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,318 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,322 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,328 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,329 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,331 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,332 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,333 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,335 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,342 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,344 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,347 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,348 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,350 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,352 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,357 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,359 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,360 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,361 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,363 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,365 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,373 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,375 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,376 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,376 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,378 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,380 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,388 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,391 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,392 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,393 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,394 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,405 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,406 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,407 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,408 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,410 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,418 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,420 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,421 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,422 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,423 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,424 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,433 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,435 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,436 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,436 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,438 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,439 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,448 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,450 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,451 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,452 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,453 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,454 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,463 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,465 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,466 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,467 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,468 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,469 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,478 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,480 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,483 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,483 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,485 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,487 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,493 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,496 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,497 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,498 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,500 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,510 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,512 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,513 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,514 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,516 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,523 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,525 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,527 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,527 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,530 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,532 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,538 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,541 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,543 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,543 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,545 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,547 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,553 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,555 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,557 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,558 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,559 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,560 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,568 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,570 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,572 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,573 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,574 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,576 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,583 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,585 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,587 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,587 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,589 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,591 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,599 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,600 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,602 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,603 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,604 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,606 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,614 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,615 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,617 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,617 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,619 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,621 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,629 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,630 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,632 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,632 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,633 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,635 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,643 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,645 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,646 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,646 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,647 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,649 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,658 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,660 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,662 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,662 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,663 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,664 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,673 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,675 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,677 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,677 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,679 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,681 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,691 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,693 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,693 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,694 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,704 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,706 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,708 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,709 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,710 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,713 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,720 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,722 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,724 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,725 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,726 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,728 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,734 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,736 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,738 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,739 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,741 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,743 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,750 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,752 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,753 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,754 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,764 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,766 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,766 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,768 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,770 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,779 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,780 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,782 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,783 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,784 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,785 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,794 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,796 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,798 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,800 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,802 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,811 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,812 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,814 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,815 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,816 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,817 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,826 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,828 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,830 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,830 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,832 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,834 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,841 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,842 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,844 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,845 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,846 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,847 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,855 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,857 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,859 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,859 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,860 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,862 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,872 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,874 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,874 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,876 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,877 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,885 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,887 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,888 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,889 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,890 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,891 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,901 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,902 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,904 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,904 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,905 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,907 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,915 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,917 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,918 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,919 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,921 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,922 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,931 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,932 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,934 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,934 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,935 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,937 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,946 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,948 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,950 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,950 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,952 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,954 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,960 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,962 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,964 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,965 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,966 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,968 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,975 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,977 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,980 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,981 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,982 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,984 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,992 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:52,994 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:52,996 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:52,998 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,006 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,007 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,009 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,011 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,023 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,024 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,027 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,037 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,039 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,041 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,042 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,043 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,045 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,052 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,053 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,054 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,055 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,056 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,057 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,066 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,067 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,068 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,069 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,070 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,071 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,081 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,082 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,084 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,084 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,085 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,087 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,095 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,097 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,099 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,099 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,100 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,102 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,111 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,112 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,114 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,115 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,116 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,118 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,125 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,126 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,127 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,127 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,128 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,129 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,130 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,131 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,132 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,140 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,141 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,141 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,142 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,142 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,143 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,155 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,156 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,157 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,158 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,158 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,159 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,170 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,171 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,172 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,173 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,174 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,174 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,186 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,187 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,188 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,189 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,189 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,190 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,201 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,202 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,202 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,203 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,204 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,204 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,216 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,217 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,218 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,218 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,219 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,219 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,232 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,234 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,235 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,235 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,236 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,238 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,247 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,248 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,249 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,249 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,250 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,250 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,262 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,263 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,265 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,265 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,266 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,267 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,278 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,279 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,280 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,280 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,280 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,281 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,292 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,294 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,295 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,296 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,297 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,298 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,308 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,310 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,312 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,312 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,313 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,315 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,322 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,324 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,325 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,326 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,329 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,338 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,339 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,341 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,341 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,343 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,345 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,352 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,354 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,356 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,356 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,358 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,360 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,368 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,369 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,372 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,372 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,374 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,375 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,382 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,384 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,385 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,386 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,387 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,389 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,398 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,400 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,402 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,402 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,404 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,406 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,413 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,415 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,417 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,417 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,418 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,420 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,429 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,431 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,433 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,434 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,438 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,443 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,446 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,448 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,449 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,453 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,459 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,460 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,462 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,463 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,465 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,466 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,473 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,475 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,476 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,477 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,478 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,480 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,488 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,490 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,491 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,492 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,493 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,494 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,504 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,505 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,506 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,507 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,509 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,512 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,518 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,520 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,522 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,522 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,523 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,535 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,536 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,538 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,539 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,541 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,542 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,551 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,553 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,555 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,556 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,557 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,559 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,565 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,567 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,569 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,569 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,571 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,573 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,580 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,582 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,584 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,585 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,586 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,589 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,595 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,598 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,601 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,601 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,603 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,605 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,609 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,612 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,614 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,615 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,616 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,618 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,624 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,626 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,627 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,628 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,630 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,632 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,640 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,642 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,643 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,644 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,646 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,647 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,655 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,657 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,658 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,659 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,660 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,662 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,670 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,672 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,674 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,675 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,677 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,680 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,684 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,686 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,688 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,690 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,692 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,700 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,702 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,703 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,704 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,706 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,714 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,716 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,717 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,718 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,719 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,721 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,729 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,731 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,732 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,733 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,734 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,735 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,745 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,747 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,748 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,749 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,750 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,752 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,760 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,761 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,763 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,763 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,764 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,766 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,774 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,776 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,777 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,778 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,779 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,781 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,789 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,790 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,792 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,793 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,794 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,796 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,804 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,805 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,808 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,809 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,810 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,812 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,818 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,820 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,822 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,822 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,824 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,825 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,835 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,836 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,839 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,841 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,842 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,844 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,848 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,850 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,852 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,852 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,854 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,856 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,864 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,865 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,867 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,868 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,869 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,871 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,879 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,881 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,884 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,884 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,885 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,887 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,893 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,897 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,898 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,899 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,909 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,911 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,913 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,914 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,915 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,925 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,927 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,929 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,929 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,931 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,933 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,940 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,941 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,943 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,943 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,945 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,946 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,955 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,956 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,957 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,958 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,959 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,961 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,970 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,972 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,973 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,974 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,975 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,976 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,985 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,987 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:53,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:53,993 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:53,995 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,001 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,003 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,005 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,006 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,008 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,010 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,015 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,017 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,019 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,019 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,021 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,023 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,031 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,033 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,035 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,035 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,037 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,039 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,045 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,047 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,049 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,050 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,052 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,053 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,060 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,062 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,064 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,064 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,066 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,068 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,075 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,077 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,079 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,079 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,081 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,083 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,090 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,092 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,094 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,094 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,095 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,098 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,105 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,107 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,108 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,109 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,110 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,112 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,120 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,122 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,123 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,123 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,126 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,135 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,138 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,141 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,142 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,144 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,145 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,150 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,152 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,153 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,154 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,155 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,156 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,165 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,167 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,168 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,169 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,170 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,172 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,180 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,182 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,183 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,184 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,185 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,186 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,195 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,197 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,199 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,199 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,201 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,202 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,210 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,212 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,214 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,214 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,216 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,217 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,225 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,227 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,229 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,229 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,231 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,233 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,240 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,242 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,243 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,244 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,246 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,248 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,256 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,257 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,259 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,259 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,260 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,262 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,271 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,272 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,274 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,274 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,276 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,278 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,286 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,287 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,289 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,290 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,291 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,293 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,300 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,302 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,305 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,306 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,308 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,310 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,316 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,317 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,319 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,320 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,321 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,323 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,329 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,331 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,332 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,333 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,334 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,335 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,344 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,346 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,347 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,348 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,350 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,360 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,361 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,363 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,363 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,364 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,365 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,374 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,376 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,377 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,378 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,379 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,380 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,389 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,391 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,392 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,406 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,408 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,410 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,411 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,419 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,421 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,422 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,422 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,424 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,425 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,434 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,438 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,438 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,440 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,441 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,449 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,452 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,453 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,455 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,457 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,464 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,466 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,467 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,468 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,469 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,472 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,481 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,483 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,483 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,484 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,486 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,496 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,497 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,499 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,500 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,501 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,503 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,511 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,513 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,516 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,516 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,518 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,520 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,525 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,527 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,528 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,529 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,530 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,532 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,540 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,542 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,543 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,544 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,545 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,546 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,555 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,557 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,559 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,559 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,560 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,562 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,570 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,571 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,573 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,573 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,575 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,576 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,586 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,587 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,588 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,589 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,590 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,591 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,601 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,602 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,604 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,604 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,605 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,607 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,615 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,617 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,619 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,619 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,621 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,622 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,632 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,633 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,635 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,635 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,637 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,640 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,647 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,648 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,650 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,651 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,652 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,654 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,662 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,663 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,665 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,666 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,668 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,670 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,676 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,678 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,680 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,680 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,682 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,684 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,691 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,693 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,694 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,695 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,697 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,699 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,707 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,709 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,709 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,711 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,713 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,721 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,723 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,725 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,726 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,727 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,729 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,735 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,737 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,739 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,739 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,740 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,742 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,752 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,754 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,756 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,757 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,759 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,761 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,766 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,768 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,770 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,770 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,772 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,774 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,782 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,783 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,784 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,785 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,786 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,788 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,796 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,798 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,800 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,800 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,802 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,804 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,811 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,813 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,814 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,815 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,816 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,817 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,826 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,828 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,829 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,830 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,831 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,833 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,841 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,843 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,844 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,845 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,847 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,848 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,857 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,858 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,859 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,860 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,861 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,864 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,873 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,875 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,876 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,877 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,879 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,886 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,888 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,889 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,890 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,892 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,893 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,900 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,902 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,904 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,905 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,906 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,908 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,917 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,918 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,920 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,921 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,922 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,925 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,932 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,933 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,934 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,935 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,936 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,938 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,946 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,948 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,949 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,950 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,951 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,952 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,961 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,963 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,964 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,964 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,965 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,967 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,978 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,979 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,980 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,981 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,982 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,983 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,993 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,994 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,996 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:54,996 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:54,997 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:54,999 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,007 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,009 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,011 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,011 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,014 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,023 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,025 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,037 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,039 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,041 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,041 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,042 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,044 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,052 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,054 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,056 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,057 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,058 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,059 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,067 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,069 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,070 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,071 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,072 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,074 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,082 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,084 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,085 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,086 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,087 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,089 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,097 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,099 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,100 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,101 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,102 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,104 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,112 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,114 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,116 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,116 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,118 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,119 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,127 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,129 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,131 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,132 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,133 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,135 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,143 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,144 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,147 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,148 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,149 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,151 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,158 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,159 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,161 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,161 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,162 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,164 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,172 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,173 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,175 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,177 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,187 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,189 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,190 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,190 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,192 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,193 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,202 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,203 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,205 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,205 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,206 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,208 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,217 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,219 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,220 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,221 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,222 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,223 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,232 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,234 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,235 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,235 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,236 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,238 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,248 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,249 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,251 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,251 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,253 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,254 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,263 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,264 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,266 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,266 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,268 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,270 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,277 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,279 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,281 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,281 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,283 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,284 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,292 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,294 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,296 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,297 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,298 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,300 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,308 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,310 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,313 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,314 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,316 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,318 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,323 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,325 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,326 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,326 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,330 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,339 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,340 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,342 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,343 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,344 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,347 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,354 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,356 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,358 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,359 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,360 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,362 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,368 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,370 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,372 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,372 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,373 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,375 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,383 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,385 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,386 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,387 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,388 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,389 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,399 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,400 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,402 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,402 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,403 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,405 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,413 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,415 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,416 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,417 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,418 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,420 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,429 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,430 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,432 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,432 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,434 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,436 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,444 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,446 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,448 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,449 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,450 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,452 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,459 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,461 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,463 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,464 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,466 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,469 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,473 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,475 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,478 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,481 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,483 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,488 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,489 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,490 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,490 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,491 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,491 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,503 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,504 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,505 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,505 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,506 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,507 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,518 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,519 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,520 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,521 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,523 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,533 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,534 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,534 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,535 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,535 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,536 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,548 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,549 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,550 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,550 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,551 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,552 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,563 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,564 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,565 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,565 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,566 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,566 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,578 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,579 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,581 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,581 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,582 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,583 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,594 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,596 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,597 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,598 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,599 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,601 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,609 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,611 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,611 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,612 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,614 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,624 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,625 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,626 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,627 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,628 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,629 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,639 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,641 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,642 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,643 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,644 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,645 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,655 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,656 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,658 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,659 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,660 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,662 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,669 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,671 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,673 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,673 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,675 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,676 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,684 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,686 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,688 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,690 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,692 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,699 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,701 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,703 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,704 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,706 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,707 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,714 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,716 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,718 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,718 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,720 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,722 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,731 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,732 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,735 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,736 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,738 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,745 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,747 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,750 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,750 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,752 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,754 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,760 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,762 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,765 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,765 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,766 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,769 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,775 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,777 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,781 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,782 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,783 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,785 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,791 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,792 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,794 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,795 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,796 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,798 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,805 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,808 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,809 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,810 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,811 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,822 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,823 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,824 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,825 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,826 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,827 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,837 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,838 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,840 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,840 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,842 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,844 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,852 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,853 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,856 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,857 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,858 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,860 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,867 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,868 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,870 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,872 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,873 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,882 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,883 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,886 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,886 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,888 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,890 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,896 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,899 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,901 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,901 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,903 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,905 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,911 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,913 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,915 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,915 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,917 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,919 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,926 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,928 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,931 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,931 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,933 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,934 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,941 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,943 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,944 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,945 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,947 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,949 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,956 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,958 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,960 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,960 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,962 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,964 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,972 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,973 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,975 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,975 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,977 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,979 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,987 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,989 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,992 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:55,992 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:55,993 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:55,995 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,001 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,003 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,004 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,005 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,006 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,008 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,016 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,017 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,019 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,019 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,021 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,022 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,031 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,033 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,034 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,034 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,035 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,037 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,046 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,048 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,049 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,050 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,051 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,052 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,062 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,064 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,065 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,066 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,068 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,077 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,079 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,081 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,081 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,082 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,084 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,092 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,094 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,095 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,096 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,097 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,098 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,107 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,109 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,110 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,111 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,112 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,113 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,122 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,125 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,126 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,128 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,130 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,138 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,139 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,141 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,141 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,143 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,144 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,153 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,155 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,157 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,158 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,159 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,160 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,168 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,170 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,172 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,173 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,174 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,176 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,183 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,185 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,186 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,187 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,189 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,191 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,199 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,200 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,203 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,203 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,205 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,207 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,213 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,215 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,216 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,217 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,218 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,219 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,228 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,230 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,231 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,232 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,233 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,234 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,244 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,245 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,247 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,247 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,248 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,250 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,258 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,260 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,261 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,262 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,263 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,264 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,273 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,275 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,277 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,278 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,279 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,281 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,288 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,290 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,292 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,293 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,294 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,296 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,303 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,305 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,306 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,307 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,308 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,311 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,319 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,321 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,323 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,324 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,325 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,327 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,335 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,338 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,339 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,341 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,342 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,348 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,350 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,352 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,353 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,355 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,357 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,363 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,365 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,367 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,367 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,368 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,370 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,379 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,380 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,383 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,383 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,385 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,386 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,393 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,395 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,398 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,398 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,400 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,402 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,409 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,410 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,413 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,413 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,415 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,416 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,423 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,425 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,426 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,427 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,428 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,430 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,440 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,441 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,442 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,443 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,444 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,445 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,453 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,456 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,457 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,458 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,459 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,460 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,469 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,471 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,472 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,473 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,474 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,475 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,484 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,486 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,487 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,488 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,489 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,491 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,499 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,501 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,502 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,503 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,504 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,505 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,514 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,516 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,517 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,518 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,519 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,521 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,530 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,531 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,533 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,533 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,534 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,536 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,545 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,547 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,550 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,550 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,553 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,555 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,560 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,562 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,565 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,566 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,567 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,569 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,575 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,577 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,579 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,580 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,582 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,584 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,589 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,591 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,592 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,593 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,593 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,594 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,604 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,606 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,608 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,609 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,611 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,619 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,621 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,623 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,623 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,625 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,626 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,634 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,636 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,638 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,638 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,641 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,649 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,650 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,650 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,650 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,651 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,652 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,664 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,665 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,667 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,667 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,668 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,669 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,679 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,681 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,683 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,683 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,685 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,687 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,695 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,696 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,699 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,699 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,701 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,703 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,709 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,710 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,712 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,712 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,713 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,714 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,724 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,726 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,728 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,728 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,730 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,732 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,739 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,741 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,742 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,743 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,744 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,746 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,755 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,756 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,758 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,758 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,760 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,762 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,769 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,771 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,773 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,774 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,775 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,776 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,784 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,786 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,788 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,789 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,790 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,792 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,801 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,803 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,804 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,805 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,807 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,814 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,816 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,818 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,818 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,820 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,822 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,830 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,832 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,833 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,834 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,835 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,837 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,844 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,846 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,848 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,848 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,850 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,851 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,859 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,861 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,862 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,863 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,864 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,865 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,874 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,876 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,877 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,878 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,879 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,880 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,890 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,891 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,893 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,893 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,894 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,905 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,906 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,907 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,908 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,909 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,910 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,920 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,921 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,924 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,924 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,926 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,927 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,934 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,936 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,938 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,938 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,940 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,941 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,949 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,951 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,953 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,953 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,955 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,956 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,964 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,966 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,967 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,968 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,969 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,972 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,979 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,981 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,983 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,984 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,985 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,987 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,994 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:56,996 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:56,998 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:56,999 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,001 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,003 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,014 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,015 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,017 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,018 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,024 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,028 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,030 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,032 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,040 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,043 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,047 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,048 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,050 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,052 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,052 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,054 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,056 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,057 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,058 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,060 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,070 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,071 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,073 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,073 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,074 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,076 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,084 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,086 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,087 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,088 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,089 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,090 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,099 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,101 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,103 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,103 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,104 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,105 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,114 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,115 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,117 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,117 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,119 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,120 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,129 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,131 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,132 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,133 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,134 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,135 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,144 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,146 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,147 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,148 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,149 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,150 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,160 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,162 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,165 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,166 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,167 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,169 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,174 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,177 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,178 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,180 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,182 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,190 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,191 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,193 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,193 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,194 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,196 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,205 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,206 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,208 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,208 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,210 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,211 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,220 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,222 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,224 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,225 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,227 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,235 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,237 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,239 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,240 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,241 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,243 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,251 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,252 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,255 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,256 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,257 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,259 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,265 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,267 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,269 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,269 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,271 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,273 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,280 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,282 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,283 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,283 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,284 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,286 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,295 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,297 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,298 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,299 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,300 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,302 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,310 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,312 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,313 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,314 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,315 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,317 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,325 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,328 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,329 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,330 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,332 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,341 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,343 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,345 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,346 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,348 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,350 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,356 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,357 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,360 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,361 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,362 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,364 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,371 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,373 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,375 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,375 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,376 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,378 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,386 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,387 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,390 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,390 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,392 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,394 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,400 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,401 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,403 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,405 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,415 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,417 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,418 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,419 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,420 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,422 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,431 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,432 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,434 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,435 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,438 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,445 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,447 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,449 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,453 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,461 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,463 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,465 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,465 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,467 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,468 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,475 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,477 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,479 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,480 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,482 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,490 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,492 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,493 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,494 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,496 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,505 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,507 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,508 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,509 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,510 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,512 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,520 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,522 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,523 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,524 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,525 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,526 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,536 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,537 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,539 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,540 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,542 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,543 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,550 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,552 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,554 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,555 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,556 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,558 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,565 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,567 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,569 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,569 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,571 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,572 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,581 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,583 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,586 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,587 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,590 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,596 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,597 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,600 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,601 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,606 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,609 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,610 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,612 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,614 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,615 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,616 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,617 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,625 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,627 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,629 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,629 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,631 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,632 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,640 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,642 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,644 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,645 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,647 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,650 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,655 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,657 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,658 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,659 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,660 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,662 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,671 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,672 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,674 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,675 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,676 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,678 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,686 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,687 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,689 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,691 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,693 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,701 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,702 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,704 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,704 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,706 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,707 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,716 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,717 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,719 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,721 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,723 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,730 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,732 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,733 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,734 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,735 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,737 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,745 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,747 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,748 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,749 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,750 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,752 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,761 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,762 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,764 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,764 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,765 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,767 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,775 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,777 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,779 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,780 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,782 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,784 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,790 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,791 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,792 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,792 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,793 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,794 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,805 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,806 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,806 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,807 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,808 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,820 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,821 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,822 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,822 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,823 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,824 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,835 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,837 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,839 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,840 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,841 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,843 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,850 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,852 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,853 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,854 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,855 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,857 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,866 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,868 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,871 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,873 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,875 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,882 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,884 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,886 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,886 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,888 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,889 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,896 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,897 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,899 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,900 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,901 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,902 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,912 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,913 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,915 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,915 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,916 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,917 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,926 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,927 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,929 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,930 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,931 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,932 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,940 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,942 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,943 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,944 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,945 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,946 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,956 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,958 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,959 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,960 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,961 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,962 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,972 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,973 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,974 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,975 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,976 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,977 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,987 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,988 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:57,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:57,992 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:57,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,002 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,003 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,005 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,006 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,007 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,009 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,016 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,018 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,019 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,020 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,022 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,023 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,032 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,033 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,035 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,035 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,036 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,039 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,077 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,080 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,081 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,082 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,083 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,085 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,092 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,093 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,094 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,095 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,096 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,097 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,106 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,107 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,107 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,108 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,108 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,109 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,121 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,122 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,122 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,123 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,123 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,124 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,136 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,137 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,138 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,138 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,138 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,139 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,151 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,152 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,152 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,153 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,153 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,154 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,166 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,168 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,169 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,169 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,170 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,171 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,181 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,182 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,184 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,184 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,186 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,187 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,196 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,198 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,200 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,200 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,202 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,203 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,211 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,213 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,215 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,216 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,217 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,218 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,226 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,228 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,229 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,230 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,232 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,233 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,241 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,243 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,244 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,245 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,246 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,248 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,257 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,258 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,260 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,260 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,262 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,264 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,271 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,273 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,275 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,275 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,276 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,278 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,287 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,288 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,290 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,290 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,291 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,293 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,302 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,303 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,305 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,305 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,307 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,308 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,317 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,318 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,320 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,320 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,321 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,323 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,332 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,334 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,335 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,336 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,337 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,338 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,347 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,350 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,351 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,352 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,354 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,362 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,364 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,365 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,366 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,367 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,368 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,377 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,379 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,380 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,381 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,382 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,384 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,392 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,394 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,395 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,396 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,397 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,398 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,407 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,409 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,411 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,412 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,414 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,415 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,422 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,424 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,425 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,425 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,426 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,428 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,438 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,440 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,441 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,442 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,443 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,444 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,452 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,454 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,456 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,457 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,458 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,460 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,467 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,469 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,471 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,471 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,482 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,484 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,485 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,486 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,487 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,498 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,499 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,501 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,502 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,503 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,505 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,513 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,516 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,518 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,519 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,521 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,523 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,527 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,529 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,530 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,531 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,532 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,534 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,542 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,544 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,545 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,546 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,547 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,548 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,557 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,559 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,560 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,560 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,562 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,563 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,572 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,574 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,575 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,575 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,577 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,578 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,587 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,589 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,590 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,591 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,592 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,594 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,603 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,604 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,606 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,606 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,608 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,609 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,617 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,619 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,621 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,621 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,622 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,624 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,632 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,634 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,636 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,636 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,638 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,640 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,647 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,649 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,651 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,652 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,654 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,655 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,662 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,664 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,667 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,668 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,670 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,678 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,679 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,681 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,682 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,683 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,685 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,693 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,695 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,697 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,698 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,700 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,709 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,710 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,713 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,714 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,715 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,717 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,724 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,725 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,727 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,727 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,729 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,731 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,738 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,740 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,741 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,742 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,743 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,745 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,753 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,755 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,756 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,757 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,758 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,759 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,768 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,770 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,771 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,772 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,773 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,774 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,783 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,785 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,786 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,787 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,788 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,790 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,800 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,802 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,802 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,803 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,805 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,813 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,814 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,816 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,816 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,817 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,819 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,828 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,830 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,832 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,832 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-05 01:13:58,833 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,833 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-05 01:13:58,834 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,837 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,843 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,845 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,847 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,847 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,849 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,850 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,858 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,860 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,862 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,863 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,865 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,867 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,874 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,875 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,877 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,877 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,879 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,881 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,889 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,891 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,893 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,893 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,895 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,904 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,906 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,908 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,909 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,910 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,912 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,919 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,922 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,925 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,926 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,928 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,931 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,934 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,935 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,937 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,938 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,940 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,941 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,948 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,949 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,951 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,951 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,953 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,955 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,963 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,965 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,966 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,966 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,968 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,969 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,979 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,981 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,983 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,984 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,986 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,987 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,994 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,996 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:58,997 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:58,998 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:58,999 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,001 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,014 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,015 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,017 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,024 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,028 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,029 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,031 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,039 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,041 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,043 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,044 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,045 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,047 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,053 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,055 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,057 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,058 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,059 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,060 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,068 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,070 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,072 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,073 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,074 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,076 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,083 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,085 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,087 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,087 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,089 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,091 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,098 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,100 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,101 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,102 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,103 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,105 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,113 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,115 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,116 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,117 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,118 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,120 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,129 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,130 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,133 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,133 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,135 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,137 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,143 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,145 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,148 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,149 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,151 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,153 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,158 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,160 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,161 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,162 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,163 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,165 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,174 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,177 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,178 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,179 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,181 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,188 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,190 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,192 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,192 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,193 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,195 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,203 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,205 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,206 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,206 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,207 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,209 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,219 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,221 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,222 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,223 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,224 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,226 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,234 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,236 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,239 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,239 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,241 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,243 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,253 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,255 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,257 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,258 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,259 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,260 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,266 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,268 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,272 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,273 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,275 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,277 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,278 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,280 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,282 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,283 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,285 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,290 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,291 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,292 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,293 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,294 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,297 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,298 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,298 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,299 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,300 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,311 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,311 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,312 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,314 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,315 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,325 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,326 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,328 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,329 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,331 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,332 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,339 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,341 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,343 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,344 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,345 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,347 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,356 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,358 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,360 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,360 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,362 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,363 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,370 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,371 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,373 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,374 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,375 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,376 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,384 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,386 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,388 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,389 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,392 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,399 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,401 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,403 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,406 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,407 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,415 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,416 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,416 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,417 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,417 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,418 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,430 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,431 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,432 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,432 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,433 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,433 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,446 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,448 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,450 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,451 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,453 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,455 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,460 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,462 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,463 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,464 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,465 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,467 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,475 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,477 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,479 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,480 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,482 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,486 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,490 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,492 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,494 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,494 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,496 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,498 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,506 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,507 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,509 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,510 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,512 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,514 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,522 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,523 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,526 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,527 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,529 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,536 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,539 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,541 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,542 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,543 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,544 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,551 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,553 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,555 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,556 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,558 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,561 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,566 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,568 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,570 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,571 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,573 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,575 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,582 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,583 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,585 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,586 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,588 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,596 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,598 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,600 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,601 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,603 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,605 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,614 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,616 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,618 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,618 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,620 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,622 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,626 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,628 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,630 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,631 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,632 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,633 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,642 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,643 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,645 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,646 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,647 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,649 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,656 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,658 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,659 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,660 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,661 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,662 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,671 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,673 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,675 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,675 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,676 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,678 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,686 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,688 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,691 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,691 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,693 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,694 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,701 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,703 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,705 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,707 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,708 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,716 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,718 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,720 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,721 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,723 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,731 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,733 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,735 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,736 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,738 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,746 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,748 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,750 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,750 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,752 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,753 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,761 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,763 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,765 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,765 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,767 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,769 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,777 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,779 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,781 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,782 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,783 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,784 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,791 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,793 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,794 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,795 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,796 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,797 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,808 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,809 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,810 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,811 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,812 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,813 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,822 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,823 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,825 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,825 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,826 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,828 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,837 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,839 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,840 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,841 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,842 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,843 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,852 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,854 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,855 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,855 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,856 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,858 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,867 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,869 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,870 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,872 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,873 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,882 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,884 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,885 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,886 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,887 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,888 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,897 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,899 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,900 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,901 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,902 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,903 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,912 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,914 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,915 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,916 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,917 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,919 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,927 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,929 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,931 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,931 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,933 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,934 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,942 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,944 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,946 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,947 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,948 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,950 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,957 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,959 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,960 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,961 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,963 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,965 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,973 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,974 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,976 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,977 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,978 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,980 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,988 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,989 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,991 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:59,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:59,992 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:59,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,003 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,005 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,007 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,009 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,011 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,013 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,017 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,019 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,021 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,023 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,025 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,033 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,035 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,037 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,038 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,040 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,042 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,047 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,049 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,051 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,052 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,054 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,056 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,062 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,064 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,066 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,067 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,069 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,071 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,078 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,079 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,080 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,081 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,082 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,083 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,092 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,094 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,097 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,098 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,099 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,100 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,107 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,108 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,110 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,110 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,111 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,112 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,122 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,125 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,125 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,126 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,127 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,137 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,138 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,139 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,140 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,141 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,142 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,152 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,153 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,154 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,155 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,156 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,157 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,167 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,168 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,169 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,169 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,170 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,171 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,183 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,184 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,185 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,186 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,187 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,187 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,197 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,198 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,199 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,199 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,200 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,201 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,212 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,213 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,214 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,215 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,216 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,217 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,227 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,228 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,229 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,229 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,230 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,231 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,242 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,243 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,244 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,244 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,244 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,245 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,257 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,258 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,259 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,259 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,260 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,261 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,272 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,273 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,275 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,275 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,276 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,277 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,287 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,288 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,289 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,289 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,290 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,291 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,302 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,303 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,303 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,304 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,304 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,305 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,317 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,318 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,319 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,319 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,321 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,332 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,333 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,334 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,334 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,335 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,336 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,347 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,348 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,349 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,349 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,350 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,362 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,364 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,365 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,365 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,366 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,367 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,377 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,378 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,379 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,380 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,381 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,383 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,392 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,393 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,394 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,394 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,395 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,396 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,407 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,408 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,409 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,409 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,410 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,411 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,422 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,424 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,425 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,426 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,427 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,428 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,437 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,438 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,439 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,439 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,439 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,440 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,452 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,453 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,453 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,453 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,454 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,454 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,467 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,468 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,470 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,470 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,471 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,472 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,482 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,484 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,485 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,486 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,487 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,489 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,497 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,499 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,500 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,501 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,502 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,503 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,512 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,514 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,515 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,516 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,517 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,519 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,527 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,529 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,531 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,532 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,533 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,534 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,542 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,544 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,546 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,547 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,549 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,551 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,557 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,559 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,560 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,561 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,563 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,565 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,574 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,575 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,577 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,577 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,579 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,581 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,588 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,590 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,591 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,592 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,593 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,595 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,604 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,605 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,607 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,608 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,609 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,612 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,619 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,621 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,623 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,624 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,626 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,627 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,633 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,635 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,636 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,637 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,639 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,641 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,648 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,650 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,651 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,652 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,653 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,655 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,663 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,665 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,667 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,668 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,669 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,679 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,680 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,681 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,682 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,683 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,684 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,693 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,695 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,696 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,697 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,699 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,708 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,710 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,712 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,713 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,714 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,716 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,723 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,725 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,726 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,726 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,727 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,729 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,739 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,741 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,743 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,744 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,745 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,747 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,754 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,755 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,757 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,758 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,759 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,760 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,768 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,770 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,773 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,773 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,774 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,776 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,784 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,785 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,787 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,788 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,790 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,791 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,798 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,800 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,802 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,802 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,804 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,806 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,815 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,816 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,818 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,818 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,820 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,822 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,829 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,832 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,834 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,835 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,837 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,839 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,844 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,846 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,849 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,850 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,852 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,854 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,859 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,861 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,862 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,863 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,864 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,866 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,874 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,876 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,877 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,878 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,879 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,880 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,889 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,891 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,892 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,892 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,894 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,895 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,904 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,906 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,907 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,907 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,908 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,910 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,920 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,921 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,923 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,924 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,925 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,926 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,934 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,936 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,938 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,938 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,940 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,941 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,949 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,951 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,952 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,953 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,954 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,955 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,964 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,966 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,967 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,968 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,969 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,971 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,981 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,982 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,984 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,984 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,986 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,987 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:00,995 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:00,997 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:00,999 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,000 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,001 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,003 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,011 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,013 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,015 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,015 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,016 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,018 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,027 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,029 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,030 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,032 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,041 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,043 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,045 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,046 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,047 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,049 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,056 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,057 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,058 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,059 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,060 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,061 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,070 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,072 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,073 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,073 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,074 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,076 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,085 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,086 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,088 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,088 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,089 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,091 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,100 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,102 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,103 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,104 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,105 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,106 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,115 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,117 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,118 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,118 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,120 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,121 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,130 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,132 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,133 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,134 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,135 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,136 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,146 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,147 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,150 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,151 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,152 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,154 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,160 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,162 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,163 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,164 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,165 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,167 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,177 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,178 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,179 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,181 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,182 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,193 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,195 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,197 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,198 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,200 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,202 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,205 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,207 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,209 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,210 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,212 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,214 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,221 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,223 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,225 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,225 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,226 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,228 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,235 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,237 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,240 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,241 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,243 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,245 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,250 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,252 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,255 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,256 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,258 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,260 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,265 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,267 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,269 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,270 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,271 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,273 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,280 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,281 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,282 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,282 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,282 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,283 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,295 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,297 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,299 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,299 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,300 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,302 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,310 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,312 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,314 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,314 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,315 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,317 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,325 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,328 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,329 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,330 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,331 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,340 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,342 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,344 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,344 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,346 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,347 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,355 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,357 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,358 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,359 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,360 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,362 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,370 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,372 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,374 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,374 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,375 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,377 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,385 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,387 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,389 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,390 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,391 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,393 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,400 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,402 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,404 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,406 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,408 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,415 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,417 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,418 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,419 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,421 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,423 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,430 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,432 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,434 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,434 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,435 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,437 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,446 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,447 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,449 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,453 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,461 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,463 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,466 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,466 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,468 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,469 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,476 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,477 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,479 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,481 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,483 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,489 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,491 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,492 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,493 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,494 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,495 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,505 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,507 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,508 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,509 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,510 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,511 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,520 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,522 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,523 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,524 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,525 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,526 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,535 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,537 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,538 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,539 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,540 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,542 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,550 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,552 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,553 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,554 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,555 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,556 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,566 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,567 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,568 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,569 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,570 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,572 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,581 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,582 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,584 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,584 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,586 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,587 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,596 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,597 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,599 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,600 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,601 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,602 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,612 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,614 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,616 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,617 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,619 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,621 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,627 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,629 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,631 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,632 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,634 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,636 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,642 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,643 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,646 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,646 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,648 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,650 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,657 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,659 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,661 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,661 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,663 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,665 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,673 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,675 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,677 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,678 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,680 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,682 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,683 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,685 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,687 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,691 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,693 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,694 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,695 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,696 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,698 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,701 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,702 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,703 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,703 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,703 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,704 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,716 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,717 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,717 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,718 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,718 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,731 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,732 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,732 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,733 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,733 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,746 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,747 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,747 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,748 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,748 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,749 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,761 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,762 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,763 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,763 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,764 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,765 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,776 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,778 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,780 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,780 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,781 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,783 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,792 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,794 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,796 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,797 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,798 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,799 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,806 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,807 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,808 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,808 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,809 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,821 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,823 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,825 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,825 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,826 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,828 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,836 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,837 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,838 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,838 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,839 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,840 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,851 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,852 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,853 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,853 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,853 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,854 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,866 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,868 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,870 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,873 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,874 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,882 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,884 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,886 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,886 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,888 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,890 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,897 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,898 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,900 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,900 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,902 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,903 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,911 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,913 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,914 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,915 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,916 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,917 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,926 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,928 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,929 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,930 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,931 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,932 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,941 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,943 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,944 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,945 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,946 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,947 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,956 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,958 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,959 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,960 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,961 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,962 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,971 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,973 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,975 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,976 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,977 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,979 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,987 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,988 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:01,990 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:01,992 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:01,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,002 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,004 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,006 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,007 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,008 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,011 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,017 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,019 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,021 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,024 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,026 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,031 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,032 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,033 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,034 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,035 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,036 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,046 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,047 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,048 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,049 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,049 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,050 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,061 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,062 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,063 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,064 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,065 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,076 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,077 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,079 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,079 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,080 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,081 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,091 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,092 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,093 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,094 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,095 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,096 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,108 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,109 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,109 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,110 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,111 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,112 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,122 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,123 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,123 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,124 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,124 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,125 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,137 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,138 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,139 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,139 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,139 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,140 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,152 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,154 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,155 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,156 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,157 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,158 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,167 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,168 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,169 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,169 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,169 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,170 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,183 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,185 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,187 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,187 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,189 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,191 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,201 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,203 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,205 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,206 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,210 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,214 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,216 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,219 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,220 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,221 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,230 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,231 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,232 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,232 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,233 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,233 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,243 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,244 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,245 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,245 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,246 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,247 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,258 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,260 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,262 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,262 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,263 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,264 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,273 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,274 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,275 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,276 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,277 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,278 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,288 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,290 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,291 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,292 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,293 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,294 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,303 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,305 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,307 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,308 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,309 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,310 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,318 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,321 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,321 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,322 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,323 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,333 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,335 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,337 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,338 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,339 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,341 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,349 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,351 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,352 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,352 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,353 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,354 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,363 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,365 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,366 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,367 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,368 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,368 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,380 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,381 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,382 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,383 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,384 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,385 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,394 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,395 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,395 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,396 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,396 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,397 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,409 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,411 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,423 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,424 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,426 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,427 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,427 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,429 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,430 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,431 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,433 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,435 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,441 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,442 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,443 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,444 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,445 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,446 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,454 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,455 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,456 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,457 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,458 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,459 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,469 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,470 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,471 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,471 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,472 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,472 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,484 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,485 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,486 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,486 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,487 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,488 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,499 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,500 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,501 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,502 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,502 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,503 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,514 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,515 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,516 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,516 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,516 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,517 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,529 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,530 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,531 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,531 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,532 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,532 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,544 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,545 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,545 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,546 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,546 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,547 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,559 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,560 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,561 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,561 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,561 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,562 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,574 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,575 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,576 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,576 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,576 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,577 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,589 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,590 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,591 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,591 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,592 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,593 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,604 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,605 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,606 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,606 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,607 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,607 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,619 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,620 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,621 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,622 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,622 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,623 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,634 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,635 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,636 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,637 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,638 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,639 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,649 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,650 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,651 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,651 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,652 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,652 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,664 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,665 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,666 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,666 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,667 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,668 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,679 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,680 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,681 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,682 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,682 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,683 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,694 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,695 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,696 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,696 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,698 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,698 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,750 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,751 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,752 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,752 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,753 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,754 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,755 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,756 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,757 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,758 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,759 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,759 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,770 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,771 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,772 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,772 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,773 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,773 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,785 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,786 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,786 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,787 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,787 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,788 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,800 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,801 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,802 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,802 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,803 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,803 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,815 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,816 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,817 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,817 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,818 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,819 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,830 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,831 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,832 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,832 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,833 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,834 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,845 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,847 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,848 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,848 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,849 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,850 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,860 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,861 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:02,862 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:14:02,863 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:02,864 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

